diff options
author | softwarefactory-project-zuul[bot] <33884098+softwarefactory-project-zuul[bot]@users.noreply.github.com> | 2019-10-16 20:13:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-16 20:13:02 +0200 |
commit | 1376b8a14902d3babccecff037848f48bc8c7715 (patch) | |
tree | 8c39a327d6e56ebdd1f880cb15a0611906ecf79e /awxkit | |
parent | Merge pull request #4992 from keithjgrant/4817-react-router-upgrade (diff) | |
parent | Merge branch 'hardening' into devel (diff) | |
download | awx-1376b8a14902d3babccecff037848f48bc8c7715.tar.xz awx-1376b8a14902d3babccecff037848f48bc8c7715.zip |
Merge pull request #5020 from ryanpetrello/devel
merge a variety of downstream bug fixes
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
Diffstat (limited to 'awxkit')
-rw-r--r-- | awxkit/awxkit/cli/custom.py | 21 | ||||
-rw-r--r-- | awxkit/awxkit/cli/docs/README.md | 2 | ||||
-rw-r--r-- | awxkit/awxkit/cli/options.py | 2 | ||||
-rw-r--r-- | awxkit/awxkit/cli/stdout.py | 2 |
4 files changed, 24 insertions, 3 deletions
diff --git a/awxkit/awxkit/cli/custom.py b/awxkit/awxkit/cli/custom.py index ad2af3b433..45146b493e 100644 --- a/awxkit/awxkit/cli/custom.py +++ b/awxkit/awxkit/cli/custom.py @@ -225,6 +225,7 @@ class AssociationMixin(object): def __init__(self, connection, resource): self.conn = connection self.resource = { + 'approval_notification': 'notification_templates', 'start_notification': 'notification_templates', 'success_notification': 'notification_templates', 'failure_notification': 'notification_templates', @@ -299,11 +300,21 @@ JobTemplateNotificationDisAssociation.targets.update({ class WorkflowJobTemplateNotificationAssociation(NotificationAssociateMixin, CustomAction): resource = 'workflow_job_templates' action = 'associate' + targets = NotificationAssociateMixin.targets.copy() class WorkflowJobTemplateNotificationDisAssociation(NotificationAssociateMixin, CustomAction): resource = 'workflow_job_templates' action = 'disassociate' + targets = NotificationAssociateMixin.targets.copy() + + +WorkflowJobTemplateNotificationAssociation.targets.update({ + 'approval_notification': ['notification_templates_approvals', 'notification_template'], +}) +WorkflowJobTemplateNotificationDisAssociation.targets.update({ + 'approval_notification': ['notification_templates_approvals', 'notification_template'], +}) class ProjectNotificationAssociation(NotificationAssociateMixin, CustomAction): @@ -329,11 +340,21 @@ class InventorySourceNotificationDisAssociation(NotificationAssociateMixin, Cust class OrganizationNotificationAssociation(NotificationAssociateMixin, CustomAction): resource = 'organizations' action = 'associate' + targets = NotificationAssociateMixin.targets.copy() class OrganizationNotificationDisAssociation(NotificationAssociateMixin, CustomAction): resource = 'organizations' action = 'disassociate' + targets = NotificationAssociateMixin.targets.copy() + + +OrganizationNotificationAssociation.targets.update({ + 'approval_notification': ['notification_templates_approvals', 'notification_template'], +}) +OrganizationNotificationDisAssociation.targets.update({ + 'approval_notification': ['notification_templates_approvals', 'notification_template'], +}) class SettingsList(CustomAction): diff --git a/awxkit/awxkit/cli/docs/README.md b/awxkit/awxkit/cli/docs/README.md index 11676ee5dd..d8f1dfc85a 100644 --- a/awxkit/awxkit/cli/docs/README.md +++ b/awxkit/awxkit/cli/docs/README.md @@ -1,7 +1,7 @@ AWX Command Line Interface ========================== -awx is the official command-line client for AWX. It: +`awx` is the official command-line client for AWX. It: * Uses naming and structure consistent with the AWX HTTP API * Provides consistent output formats with optional machine-parsable formats diff --git a/awxkit/awxkit/cli/options.py b/awxkit/awxkit/cli/options.py index 858808ae8e..5156482df9 100644 --- a/awxkit/awxkit/cli/options.py +++ b/awxkit/awxkit/cli/options.py @@ -95,7 +95,7 @@ class ResourceOptionsParser(object): def get_allowed_options(self): self.allowed_options = self.page.connection.options( - self.page.endpoint + '1' + self.page.endpoint + '1/' ).headers.get('Allow', '').split(', ') def build_list_actions(self): diff --git a/awxkit/awxkit/cli/stdout.py b/awxkit/awxkit/cli/stdout.py index 47ca7f79f6..1cf18168e1 100644 --- a/awxkit/awxkit/cli/stdout.py +++ b/awxkit/awxkit/cli/stdout.py @@ -73,7 +73,7 @@ def monitor_workflow(response, session, print_stdout=True, timeout=None, def monitor(response, session, print_stdout=True, timeout=None, interval=.25): get = response.url.get - payload = {'order_by': 'start_line'} + payload = {'order_by': 'start_line', 'no_truncate': True} if response.type == 'job': events = response.related.job_events.get else: |