Added HTTPS support
[pti/o2.git] / cgtsclient-insecure.patch
1 diff --git a/sysinv/cgts-client/cgts-client/cgtsclient/client.py b/sysinv/cgts-client/cgts-client/cgtsclient/client.py
2 index d16cb239..bcf791c7 100644
3 --- a/sysinv/cgts-client/cgts-client/cgtsclient/client.py
4 +++ b/sysinv/cgts-client/cgts-client/cgtsclient/client.py
5 @@ -49,6 +49,7 @@ def _make_session(**kwargs):
6          user_domain_name = kwargs.get('os_user_domain_name') or "Default"
7          project_domain_id = kwargs.get('os_project_domain_id')
8          project_domain_name = kwargs.get('os_project_domain_name') or "Default"
9 +        insecure = kwargs.get('insecure')
10          # todo(abailey): we can enhance this to also support token
11          auth_type = 'password'
12          username = kwargs.get('os_username')
13 @@ -70,6 +71,7 @@ def _make_session(**kwargs):
14          loader = loading.get_plugin_loader(auth_type)
15          auth_plugin = loader.load_from_options(**auth_kwargs)
16          session = loading.session.Session().load_from_options(auth=auth_plugin,
17 +                                                              insecure=insecure,
18                                                                timeout=timeout)
19      # session could still be None
20      return session