-
Notifications
You must be signed in to change notification settings - Fork 34
Fix: Support networks not owned by openstack project #598
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,8 +45,8 @@ resource "openstack_networking_port_v2" "compute" { | |
subnet_id = data.openstack_networking_subnet_v2.subnet[each.value.network].id | ||
} | ||
|
||
port_security_enabled = lookup(each.value, "port_security_enabled", true) | ||
security_group_ids = lookup(each.value, "port_security_enabled", true) ? var.security_group_ids : [] | ||
port_security_enabled = lookup(each.value, "port_security_enabled", null) | ||
security_group_ids = lookup(each.value, "port_security_enabled", null) != false ? var.security_group_ids : [] | ||
JohnGarbutt marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't understand why this wasn't just:
what am I missing here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. agh you're right I think There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This commit isn't working for me, it still applies the security groups even when port_security_enabled is false. Can you please switch to @sjpb's suggestion? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
binding { | ||
vnic_type = lookup(var.vnic_types, each.value.network, "normal") | ||
|
Uh oh!
There was an error while loading. Please reload this page.