Skip to content
Open
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
5 changes: 1 addition & 4 deletions plugins/module_utils/controller_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,10 +1036,7 @@ def logout(self):
self.warn(f'Failed to release token {self.oauth_token_id}: {e}')

def is_job_done(self, job_status):
if job_status in ['new', 'pending', 'waiting', 'running']:
return False
else:
return True
return job_status not in ['new', 'pending', 'waiting', 'running']

def wait_on_url(self, url, object_name, object_type, timeout=30, interval=2):
# Grab our start time to compare against for the timeout
Expand Down