Skip to content

Commit

Permalink
fix(deployment): made dependent deployment ready phase to provisioning
Browse files Browse the repository at this point in the history
  • Loading branch information
smrutisenapati committed Jul 24, 2023
1 parent 15b878d commit 4c18446
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions riocli/deployment/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,11 @@ def create_object(self, client: Client, **kwargs) -> typing.Any:
retry_interval = int(kwargs.get('retry_interval'))

if 'runtime' in self.spec and runtime != self.spec.runtime:
click.secho(
'>> runtime mismatch => ' +
'deployment:{}.runtime !== package:{}.runtime '.format(
msg = '>> runtime mismatch => deployment:{}.runtime !== package:{}.runtime '.format(
self.metadata.name, pkg['packageName']
), fg=Colors.RED)
return
)
click.secho(msg, fg=Colors.RED)
raise Exception(msg)

provision_config = pkg.get_provision_configuration(plan_id)

Expand All @@ -97,7 +96,7 @@ def create_object(self, client: Client, **kwargs) -> typing.Any:
dep_guid, dep = self.rc.find_depends(item)
if dep is None and dep_guid:
dep = client.get_deployment(dep_guid)
provision_config.add_dependent_deployment(dep)
provision_config.add_dependent_deployment(dep, ready_phases=[DeploymentPhaseConstants.PROVISIONING.value])

# Add Network
if 'rosNetworks' in self.spec:
Expand Down

0 comments on commit 4c18446

Please sign in to comment.