Skip to content

Commit

Permalink
ensure setting of DEFAULT_CERT_NAME when password is given
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Smith committed Dec 15, 2016
1 parent 840b769 commit 2355c57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions acitoolkit/acitoolkitlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ def set_default(key):
if DEFAULT_PASSWORD is not None:
DEFAULT_CERT_NAME = set_default('cert_name')
DEFAULT_KEY = set_default('key')
# else:
# DEFAULT_CERT_NAME = None
# DEFAULT_KEY = None
self._parser.add_argument('-u', '--url',
default=DEFAULT_URL,
help='APIC URL e.g. http://1.2.3.4')
Expand Down

0 comments on commit 2355c57

Please sign in to comment.