Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ocp_resources/node_network_configuration_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,11 @@ def apply(self, resource=None):
for _ in samples:
return

def deploy(self):
def deploy(self, wait=False):
self.ipv4_ports_backup()
self.ipv6_ports_backup()

self.create(body=self.res)
self.create(body=self.res, wait=wait)
try:
self.wait_for_status_success()
return self
Expand Down
4 changes: 2 additions & 2 deletions ocp_resources/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,8 @@ def _sigint_handler(self, signal_received, frame):
self.__exit__(exception_type=None, exception_value=None, traceback=None)
sys.exit(signal_received)

def deploy(self):
self.create()
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.

self.create(wait=wait)
return self

def clean_up(self):
Expand Down