Make sure auth is present before checking for /
- Fixes bug 945882 Change-Id: I22a688b01678ab93e888c9537a3f611e43e22c30
This commit is contained in:
parent
413173088c
commit
bcaecc574e
@ -1854,7 +1854,7 @@ def parse_args(parser, args, enforce_requires=True):
|
|||||||
options.key = options.password
|
options.key = options.password
|
||||||
|
|
||||||
# Handle trailing '/' in URL
|
# Handle trailing '/' in URL
|
||||||
if not options.auth.endswith('/'):
|
if options.auth and not options.auth.endswith('/'):
|
||||||
options.auth += '/'
|
options.auth += '/'
|
||||||
|
|
||||||
if enforce_requires and \
|
if enforce_requires and \
|
||||||
|
Loading…
Reference in New Issue
Block a user