Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix openstack inventory script for multi-cloud case #41664

Merged
merged 1 commit into from
Jun 18, 2018

Conversation

emonty
Copy link
Contributor

@emonty emonty commented Jun 18, 2018

SUMMARY

The shift to openstacksdk left us with a bug in that when running bare
with --list, the cloud argument to get_one is None. We just need one
of the clouds to pull the cache settings, since they are global (yet,
we'll go back and fix this in sdk)

If it's None, just use get_all and grab the first one.

ISSUE TYPE
  • Bugfix Pull Request

The shift to openstacksdk left us with a bug in that when running bare
with --list, the cloud argument to get_one is None. We just need _one_
of the clouds to pull the cache settings, since they are global (yet,
we'll go back and fix this in sdk)

If it's None, just use get_all and grab the first one.
@ansibot ansibot added affects_2.7 This issue/PR affects Ansible v2.7 bug This issue/PR relates to a bug. c:inventory/contrib_script inventory Inventory category needs_triage Needs a first human triage before being processed. support:community This issue/PR relates to code supported by the Ansible community. labels Jun 18, 2018
@opendev-zuul
Copy link

opendev-zuul bot commented Jun 18, 2018

Build succeeded (third-party-check pipeline).

@emonty
Copy link
Contributor Author

emonty commented Jun 18, 2018

Self-approving - the existing code is broken for anyone using this as an inventory source. Fix has been tested in production.

@emonty emonty merged commit 16fb74f into ansible:devel Jun 18, 2018
@mattclay mattclay removed the needs_triage Needs a first human triage before being processed. label Jun 18, 2018
jacum pushed a commit to jacum/ansible that referenced this pull request Jun 26, 2018
The shift to openstacksdk left us with a bug in that when running bare
with --list, the cloud argument to get_one is None. We just need _one_
of the clouds to pull the cache settings, since they are global (yet,
we'll go back and fix this in sdk)

If it's None, just use get_all and grab the first one.
@ansible ansible locked and limited conversation to collaborators Jun 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.7 This issue/PR affects Ansible v2.7 bug This issue/PR relates to a bug. c:inventory/contrib_script cloud inventory Inventory category openstack support:community This issue/PR relates to code supported by the Ansible community.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants