-
Notifications
You must be signed in to change notification settings - Fork 77
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
Openstack add public IP options #263
base: main
Are you sure you want to change the base?
Openstack add public IP options #263
Conversation
@@ -102,6 +102,8 @@ | |||
image: "{{ item.image }}" | |||
key_name: "{{ key_name }}" | |||
flavor: "{{ item.flavor }}" | |||
floating_ip_pools: "{{ item.floating_ip_pools if item.floating_ip_pools is defined and item.floating_ip_pools else omit }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not checking with | length > 0
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you suggesting item.floating_ip_pools is defined and item.floating_ip_pools | length > 0
?
What is the benefit opposed to the current state?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I was suggesting something like that. I prefer '| length > 0' because it's more explicit. I'm not sure what's the current practice in the repo but I guess it was to using that and that's what matters (rather than my opinion).
I also was expecting ansible-lint to complain about it but I've not checked it.
a68921a
to
82111c2
Compare
Adds options to the OpenStack plugin to set a list of floating IP pools from which to choose a floating IP or to turn off the allocation of a public IP.
Supersedes #229 and #243