misc: do not wait already deployed SP (#43035)
This commit is contained in:
parent
bad0618e16
commit
0a476f2b33
|
@ -123,7 +123,6 @@ class Command(hobo_deploy.Command):
|
|||
# create or update Service Providers
|
||||
services = hobo_environment['services']
|
||||
retries = 0
|
||||
loaded = 0
|
||||
provision_target_ous = {}
|
||||
max_retries = 1 if self.redeploy else 5
|
||||
while retries < max_retries:
|
||||
|
@ -132,7 +131,6 @@ class Command(hobo_deploy.Command):
|
|||
continue
|
||||
if not service.get('saml-sp-metadata-url'):
|
||||
service['$done'] = True
|
||||
loaded += 1
|
||||
continue
|
||||
sp_url = service['saml-sp-metadata-url']
|
||||
metadata_text = None
|
||||
|
@ -226,9 +224,8 @@ class Command(hobo_deploy.Command):
|
|||
self.load_skeleton(provider, service['service-id'],
|
||||
service['template_name'])
|
||||
service['$done'] = True
|
||||
loaded += 1
|
||||
|
||||
if len(services) == loaded:
|
||||
if all(service.get('$done') for service in services):
|
||||
# it's finished no need to continue
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in New Issue