-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make "esi mdc baremetal node list" work
OpenStackConfig.get_all() will fail with a keystone exception if there are any OS_* variables set in the environment [1]. This is easy to trigger if, for example, you have set OS_BAREMETAL_API_VERSION in your environment to work around [2]. We can avoid the problem by removing the call to get_all(), and instead initializing the list of clouds using get_cloud_names(). This commit makes a number of additional changes to esiclient/v1/mdc/mdc_node_baremetal.py: - Several attribute names appear to have changed since this code was written (node.uuid is now node.id; node.instance_uuid is now node.instance_id). - Replace single-letter variable names with more meaningful names. - Add the '--ignore-invalid' command, which allows the command to continue in the event that it cannot successfully connect to one or more clouds. [1]: https://bugs.launchpad.net/openstacksdk/+bug/2096621 [2]: CCI-MOC/esi#669
- Loading branch information
Showing
2 changed files
with
72 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters