Adds support for --insecure.

fixes lp#1004281.

Change-Id: I464e39515a7172bfb72921a92f46d31baac466d8
This commit is contained in:
Michael Basnight
2012-05-24 22:35:14 -05:00
parent a0f6ef9c6b
commit 405d2494e3
3 changed files with 12 additions and 4 deletions
+7 -1
View File
@@ -53,6 +53,11 @@ class OpenStackImagesShell(object):
action='store_true',
help=argparse.SUPPRESS)
parser.add_argument('--insecure',
default=False,
action='store_true',
help=argparse.SUPPRESS)
parser.add_argument('--os-username',
default=utils.env('OS_USERNAME'),
help='Defaults to env[OS_USERNAME]')
@@ -221,7 +226,8 @@ class OpenStackImagesShell(object):
}
endpoint, token = self._authenticate(**kwargs)
image_service = client_v1.Client(endpoint, token)
image_service = client_v1.Client(endpoint, token,
insecure=args.insecure)
try:
args.func(image_service, args)