-
Notifications
You must be signed in to change notification settings - Fork 60
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
Handle possibility of arrays for Network Security Groups #180
Conversation
Checked commit https://github.com/djberg96/manageiq-providers-azure/commit/19f2a5466cfdc2e14208020dabfda8434e68ad4f with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 app/models/manageiq/providers/azure/network_manager/refresh_parser.rb
|
@bronaghs @blomquisg Contrary to what the github is showing, Travis appears to be green. |
🍏 :) |
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.
👍
Handle possibility of arrays for Network Security Groups (cherry picked from commit 41eb3c4) https://bugzilla.redhat.com/show_bug.cgi?id=1520977
Gaprindashvili backport details:
|
Handle possibility of arrays for Network Security Groups (cherry picked from commit 41eb3c4) https://bugzilla.redhat.com/show_bug.cgi?id=1521036
Fine backport details:
|
Euwe backport (to manageiq repo) details:
|
This handles an api-version update for Network Security Groups that started with api-version 2017-10-01. As of that date, multiple ports and/or ranges are returned as an array with a slightly different property name, e.g.
source_address_prefixes
instead ofsource_address_prefix
.For earlier versions of the api-version, it's possible neither property will exist (it doesn't handle arrays), in which case we simply return nil.
Note that for
port
andend_port
I simply took the low and high values, respectively, since the underlyingfirewall_rules
table isn't designed to handle arrays of values.https://bugzilla.redhat.com/show_bug.cgi?id=1520196