Remove "insecure" in token-based authentication.
Currently, in kingbirdclient we are using insecure parameter for token-based authentication but insecure parameter shouldnot be used in token-based authentication. Closes-Bug: #1718211 Change-Id: I322b26a3c8b2205d65c5788914a604f8dc667b96
This commit is contained in:
parent
078b0eed0d
commit
2126e83d43
@ -85,9 +85,9 @@ class Client(object):
|
||||
)
|
||||
|
||||
# Create all resource managers
|
||||
self.quota_manager = qm.quota_manager(self.http_client)
|
||||
self.quota_class_manager = qcm.quota_class_manager(self.http_client)
|
||||
self.sync_manager = sm.sync_manager(self.http_client)
|
||||
self.quota_manager = qm.QuotaManager(self.http_client)
|
||||
self.quota_class_manager = qcm.QuotaClassManager(self.http_client)
|
||||
self.sync_manager = sm.SyncManager(self.http_client)
|
||||
|
||||
|
||||
def authenticate(kingbird_url=None, username=None,
|
||||
@ -118,9 +118,7 @@ def authenticate(kingbird_url=None, username=None,
|
||||
project_id=project_id,
|
||||
project_name=project_name,
|
||||
project_domain_name=project_domain_name,
|
||||
project_domain_id=project_domain_id,
|
||||
cacert=cacert,
|
||||
insecure=insecure)
|
||||
project_domain_id=project_domain_id)
|
||||
|
||||
elif api_key and (username or user_id):
|
||||
auth = auth_plugin.Password(
|
||||
|
@ -24,7 +24,7 @@ class QuotaClass(base.Resource):
|
||||
self._Limit = Limit
|
||||
|
||||
|
||||
class quota_class_manager(base.ResourceManager):
|
||||
class QuotaClassManager(base.ResourceManager):
|
||||
resource_class = QuotaClass
|
||||
|
||||
def list_quota_class(self, quota_class):
|
||||
|
@ -26,7 +26,7 @@ class Quota(base.Resource):
|
||||
self._Usage = Usage
|
||||
|
||||
|
||||
class quota_manager(base.ResourceManager):
|
||||
class QuotaManager(base.ResourceManager):
|
||||
resource_class = Quota
|
||||
|
||||
def list_defaults(self):
|
||||
|
@ -33,7 +33,7 @@ class Resource(base.Resource):
|
||||
self.resource_type = resource_type
|
||||
|
||||
|
||||
class sync_manager(base.ResourceManager):
|
||||
class SyncManager(base.ResourceManager):
|
||||
resource_class = Resource
|
||||
|
||||
def sync_resources(self, **kwargs):
|
||||
|
Loading…
x
Reference in New Issue
Block a user