diff --git a/roles/copr/backend/templates/resalloc/ibm-cloud-vm.j2 b/roles/copr/backend/templates/resalloc/ibm-cloud-vm.j2 index 3c6003f6ac..3d0e5372fa 100755 --- a/roles/copr/backend/templates/resalloc/ibm-cloud-vm.j2 +++ b/roles/copr/backend/templates/resalloc/ibm-cloud-vm.j2 @@ -237,9 +237,8 @@ def _main(): opts.instance = "production" if "-prod-" in name else "devel" - detect_floating_ip_name(opts) - if opts.subparser == "create": + detect_floating_ip_name(opts) create_instance(service, name, opts, log) elif opts.subparser == "delete": delete_instance(service, opts.name, log)