diff options
author | Monty Taylor <mordred@inaugust.com> | 2016-10-07 11:35:50 -0400 |
---|---|---|
committer | Monty Taylor <mordred@inaugust.com> | 2016-10-07 13:43:27 -0400 |
commit | 1653120803e76cf02c2f35d3bdb67e6bb1848817 (patch) | |
tree | 592fd070173eafe877372c949be312f5213b8844 | |
parent | 686bd837649d921b22ff9f431955e75450dfffda (diff) | |
download | os-client-config-1653120803e76cf02c2f35d3bdb67e6bb1848817.tar.gz |
Add setter for session constructor
shade needs to be able to attach an adapter wrapper to an already
constructed CloudConfig object, so add a setter.
Change-Id: I640859b5d78d17e3c99e8ec11f1418f275e4dea2
-rw-r--r-- | os_client_config/cloud_config.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/os_client_config/cloud_config.py b/os_client_config/cloud_config.py index ae5da3a..80cd266 100644 --- a/os_client_config/cloud_config.py +++ b/os_client_config/cloud_config.py @@ -102,6 +102,10 @@ class CloudConfig(object): def __ne__(self, other): return not self == other + def set_session_constructor(self, session_constructor): + """Sets the Session constructor.""" + self._session_constructor = session_constructor + def get_requests_verify_args(self): """Return the verify and cert values for the requests library.""" if self.config['verify'] and self.config['cacert']: |