diff --git a/pkg/util/ansible_execution.go b/pkg/util/ansible_execution.go index 213cae427..5598d57e3 100644 --- a/pkg/util/ansible_execution.go +++ b/pkg/util/ansible_execution.go @@ -56,7 +56,12 @@ func AnsibleExecution( return err } if ansibleEE == nil { - executionName := fmt.Sprintf("%s-%s", label, obj.GetName()) + var executionName string + if len(label) > 0 { + executionName = fmt.Sprintf("%s-%s", label, obj.GetName()) + } else { + executionName = obj.GetName() + } ansibleEE = &ansibleeev1.OpenStackAnsibleEE{ ObjectMeta: metav1.ObjectMeta{ Name: executionName,