Skip to content

Conversation

@dbasunag
Copy link
Contributor

Short description: Added wait=False to resource.deploy() call
More details:
What this PR does / why we need it:
Which issue(s) this PR fixes:
Special notes for reviewer:
Bug:

sys.exit(signal_received)

def deploy(self):
def deploy(self, wait=False):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have more resources that define wait, please add wait there as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will update those resources.

return

def deploy(self):
def deploy(self, wait=True):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait should go to self.create() and not with if wait:

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

return

def deploy(self):
def deploy(self, wait=True):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait should go to self.create() and not with if wait:

@dbasunag
Copy link
Contributor Author

!verified

@myakove myakove merged commit dbbda86 into RedHatQE:main Apr 20, 2022
dbasunag added a commit to dbasunag/openshift-python-wrapper that referenced this pull request Apr 24, 2022
* add wait argument to deploy()

* update node_network_configuration_policy.deploy()

* pass wait argument to the create call

* change default value to False
rnetser added a commit that referenced this pull request May 2, 2022
myakove pushed a commit to myakove/openshift-python-wrapper that referenced this pull request May 11, 2022
* add wait argument to deploy()

* update node_network_configuration_policy.deploy()

* pass wait argument to the create call

* change default value to False
myakove added a commit that referenced this pull request May 11, 2022
* add wait argument to deploy()

* update node_network_configuration_policy.deploy()

* pass wait argument to the create call

* change default value to False

Co-authored-by: dbasunag <82394005+dbasunag@users.noreply.github.com>
@dbasunag dbasunag deleted the wait_on_deploy branch July 10, 2022 22:47
myakove pushed a commit that referenced this pull request Aug 11, 2025
* add wait argument to deploy()

* update node_network_configuration_policy.deploy()

* pass wait argument to the create call

* change default value to False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants