Make sure auth is present before checking for /

- Fixes bug 945882

Change-Id: I22a688b01678ab93e888c9537a3f611e43e22c30
This commit is contained in:
Chmouel Boudjnah 2012-03-03 21:55:09 +00:00
parent 413173088c
commit bcaecc574e

View File

@ -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 \