Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

Commit

Permalink
remove blank space and correct the parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Apr 26, 2019
1 parent 8068a6e commit 410edf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tower_cli/resources/inventory_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def status(self, pk, detail=False, **kwargs):
'failed': job['failed'],
'status': job['status'],
}

@resources.command(use_fields_as_options=False)
@click.option('--inventory_source', type=types.Related('inventory_source'))
@click.option('--notification-template',
Expand Down
4 changes: 2 additions & 2 deletions tower_cli/resources/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Resource(models.Resource):
@click.option('--status', type=click.Choice(['any', 'error', 'success']),
required=False, default='any', help='Specify job run status'
' of inventory_sync to relate to.')
def associate_notification_template(self, inventory_source,
def associate_notification_template(self, organization,
notification_template, status):
"""Associate a notification template from this organization.
Expand Down Expand Up @@ -66,7 +66,7 @@ def associate_notification_template(self, inventory_source,
@click.option('--status', type=click.Choice(['any', 'error', 'success']),
required=False, default='any', help='Specify job run status'
' of inventory_sync to relate to.')
def disassociate_notification_template(self, inventory_source,
def disassociate_notification_template(self, organization,
notification_template, status):
"""Disassociate a notification template from this organization.
Expand Down

0 comments on commit 410edf0

Please sign in to comment.