From bcaecc574eb42fa0e29cd0e82eec4ca2655fbfc7 Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Sat, 3 Mar 2012 21:55:09 +0000 Subject: [PATCH] Make sure auth is present before checking for / - Fixes bug 945882 Change-Id: I22a688b01678ab93e888c9537a3f611e43e22c30 --- bin/swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/swift b/bin/swift index 4651fd16cb..3319dab691 100755 --- a/bin/swift +++ b/bin/swift @@ -1854,7 +1854,7 @@ def parse_args(parser, args, enforce_requires=True): options.key = options.password # Handle trailing '/' in URL - if not options.auth.endswith('/'): + if options.auth and not options.auth.endswith('/'): options.auth += '/' if enforce_requires and \