Unified config handling for client libraries and programs
Go to file
Alexander D 590b1723b5
fix saltstack breakage introduced in v1.31.0
SaltStack's openstack cloud provider in current production release calls
os_client_config.vendors.get_profile after importing just
os_client_config:
https://github.com/saltstack/salt/blob/v2018.3.0/salt/cloud/clouds/openstack.py#L319
After 5c2eae8f82 vendors module is no
longer imported into os_client_config which results in
AttributeError: 'module' object has no attribute 'vendors'
Importing this manually in __init__.py fixes it, however I wasn't able
to write a working test case — testtools loader loads all submodules
recursively and test runs without throwing exception.
I hope someone more knowledgeable review this change and confirm it
doesn't break this use case anymore.
Thanks in advance.

Change-Id: I5a3cb6096a090c29e257079da7c3d07d5a9b3428
Signed-off-by: Alexander D <maniac@pzskc383.dp.ua>
2018-05-18 02:17:21 +03:00
doc fix link to openstacksdk in deprecation block 2018-05-04 15:42:36 +02:00
os_client_config fix saltstack breakage introduced in v1.31.0 2018-05-18 02:17:21 +03:00
releasenotes Replace guts with openstack.config 2018-04-27 08:42:17 -05:00
tools Split docs requirements and update tox.ini 2018-01-31 11:34:57 -06:00
.coveragerc Change ignore-errors to ignore_errors 2015-09-21 14:41:36 +00:00
.gitignore Updates for stestr 2017-09-14 16:57:42 -05:00
.gitreview Update .gitreview for git section rename 2015-03-28 11:36:44 -04:00
.mailmap Initial Cookiecutter Commit. 2014-09-20 16:16:13 -07:00
.stestr.conf Updates for stestr 2017-09-14 16:57:42 -05:00
.zuul.yaml add lower-constraints job 2018-04-09 11:01:41 -04:00
CONTRIBUTING.rst Workflow documentation is now in infra-manual 2014-12-05 03:30:46 +00:00
HACKING.rst Update the documentation link for doc migration 2017-08-07 15:10:42 +08:00
LICENSE Initial Cookiecutter Commit. 2014-09-20 16:16:13 -07:00
README.rst Replace guts with openstack.config 2018-04-27 08:42:17 -05:00
lower-constraints.txt Replace guts with openstack.config 2018-04-27 08:42:17 -05:00
requirements.txt Replace guts with openstack.config 2018-04-27 08:42:17 -05:00
setup.cfg Update the documentation link for doc migration 2017-08-07 15:10:42 +08:00
setup.py Manually sync with g-r 2017-07-24 21:46:26 +02:00
test-requirements.txt Updated from global requirements 2018-01-31 11:36:56 -06:00
tox.ini add lower-constraints job 2018-04-09 11:01:41 -04:00

README.rst

os-client-config

image

Warning

os-client-config has been superceded by openstacksdk. While os-client-config will continue to exist, it is highly recommended that users transition to using openstacksdk directly.

os-client-config is a library for collecting client configuration for using an OpenStack cloud in a consistent and comprehensive manner. It will find cloud config for as few as 1 cloud and as many as you want to put in a config file. It will read environment variables and config files, and it also contains some vendor specific default values so that you don't have to know extra info to use OpenStack

  • If you have a config file, you will get the clouds listed in it
  • If you have environment variables, you will get a cloud named envvars
  • If you have neither, you will get a cloud named defaults with base defaults

Source