-
Notifications
You must be signed in to change notification settings - Fork 898
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
Add back the missing IP address range in Virtual Private Cloud name. #16898
Conversation
LGTM - thanks @lfu |
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.
👍 Looks great to me @lfu
end | ||
else | ||
load_ar_obj(src[:ems]).all_cloud_networks.each_with_object({}) do |cn, hash| | ||
hash[cn.id] = cn.name | ||
hash[cn.id] = cn.cidr.blank? ? cn.name : "#{cn.name} (#{cn.cidr})" |
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.
@lfu Would suggest DRYing up this naming logic since it gets repeated here as well as in some external repos.
def cloud_network_display_name(cn)
cn.cidr.blank? ? cn.name : "#{cn.name} (#{cn.cidr})"
end
63a0b1b
to
95aa300
Compare
Checked commit lfu@95aa300 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0 |
Add back the missing IP address range in Virtual Private Cloud name. (cherry picked from commit 32a131d) https://bugzilla.redhat.com/show_bug.cgi?id=1539730
Gaprindashvili backport details:
|
IP address range in Virtual Private Cloud name was accidentally removed here.
Includes ManageIQ/manageiq-providers-openstack#211.
Includes ManageIQ/manageiq-providers-google#46.
https://bugzilla.redhat.com/show_bug.cgi?id=1538696
@miq-bot add_label bug, gaprindashvili/yes
@miq-bot assign @gmcculloug
cc @bronaghs