diff --git a/test/e2e/shared/common.go b/test/e2e/shared/common.go index 791e440fb4..0d64f9e64f 100644 --- a/test/e2e/shared/common.go +++ b/test/e2e/shared/common.go @@ -169,7 +169,8 @@ func getOpenStackClusterFromMachine(ctx context.Context, client client.Client, m } key = types.NamespacedName{ - Name: cluster.Spec.InfrastructureRef.Name, + Name: cluster.Spec.InfrastructureRef.Name, + Namespace: cluster.Namespace, } openStackCluster := &infrav1.OpenStackCluster{} err = client.Get(ctx, key, openStackCluster)