diff --git a/awxkit/awxkit/cli/custom.py b/awxkit/awxkit/cli/custom.py index 0bbaea3b59d2..835bd743c1fb 100644 --- a/awxkit/awxkit/cli/custom.py +++ b/awxkit/awxkit/cli/custom.py @@ -79,7 +79,7 @@ def monitor(self, response, **kwargs): status = mon(response, self.page.connection.session, **monitor_kwargs) if status: response.json['status'] = status - if status in ('failed', 'error'): + if status in ('failed', 'error', 'canceled'): setattr(response, 'rc', 1) return response @@ -559,7 +559,7 @@ def perform(self, **kwargs): ) if status: response.json['status'] = status - if status in ('failed', 'error'): + if status in ('failed', 'error', 'canceled'): setattr(response, 'rc', 1) else: return 'Unable to monitor finished job'