Skip to content
Snippets Groups Projects
Commit 0334b097 authored by Ashok's avatar Ashok
Browse files

Merge branch 'perfkit-insecure' into 'touchstone-master'

adding insecure option in openstack command

Adding parameter to support openstack commands without cert verification.

See merge request !7
parents dd9cfab7 a462da29
Branches
Tags v1.13.0-T2.11.0
2 merge requests!14Fixing perfkit requirements for python 2.7,!7adding insecure option in openstack command
......@@ -109,4 +109,15 @@ class OpenStackCLICommand(object):
resource: An OpenStack resource of type BaseResource.
"""
self.flags['format'] = 'json'
self.additional_flags.extend(FLAGS.openstack_additional_flags or ())
additional_flags = ()
if FLAGS.openstack_additional_flags:
additional_flags = FLAGS.openstack_additional_flags[:]
# Note: Adding INSECURE flag in openstack command to run openstack
# command without certificate verification.
# This change is required to run Perfkit with INSECURE Certificate Type
# of Environment.
if 'insecure' in additional_flags:
self.args.insert(0, '--insecure')
additional_flags.remove('insecure')
self.additional_flags.extend(additional_flags)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment