diff --git a/awxkit/awxkit/cli/custom.py b/awxkit/awxkit/cli/custom.py index 0bbaea3b59..d0e52114df 100644 --- a/awxkit/awxkit/cli/custom.py +++ b/awxkit/awxkit/cli/custom.py @@ -81,6 +81,8 @@ class Launchable(object): response.json['status'] = status if status in ('failed', 'error'): setattr(response, 'rc', 1) + if status in ('canceled'): + setattr(response, 'rc', 2) return response def perform(self, **kwargs): @@ -561,6 +563,8 @@ class HasMonitor(object): response.json['status'] = status if status in ('failed', 'error'): setattr(response, 'rc', 1) + if status in ('canceled'): + setattr(response, 'rc', 2) else: return 'Unable to monitor finished job'