Skip to content

Commit

Permalink
Improve --existing arg to default to current.
Browse files Browse the repository at this point in the history
  • Loading branch information
Veebers committed Jan 24, 2018
1 parent a79e502 commit ca21cce
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions acceptancetests/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,15 @@ def add_basic_testing_arguments(
help='Keep the Juju environment after the test'
' completes.')
if existing:
parser.add_argument('--existing', action='store',
help='Existing controller to test against. Using '
'"current" selects the current controller')
parser.add_argument(
'--existing',
action='store',
default=None,
const='current',
nargs='?',
help='Test using an existing bootstrapped controller. '
'If no controller name is provided defaults to using the '
'current selected controller.')
if deadline:
parser.add_argument('--timeout', dest='deadline', type=_to_deadline,
help="The script timeout, in seconds.")
Expand Down

0 comments on commit ca21cce

Please sign in to comment.