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
Set image name to id if name is nil in Glance #3
Conversation
Please rebase...I believe master is now green. |
@@ -14,7 +14,7 @@ def parse_image(image) | |||
:type => self.class.miq_template_type, | |||
:uid_ems => uid, | |||
:ems_ref => uid, | |||
:name => image.name, | |||
:name => image.name.nil? ? image.id : image.name, |
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.
I think image.name || image.id
is more Ruby-esque.
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.
Ah, thanks for passing that along! I'll make the change.
25cd466
to
4a5fd44
Compare
Checked commit tzumainn@4a5fd44 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.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.
Tested.
This PR solves described issue.
Fine backport (to manageiq repo) details:
|
Euwe backport (to manageiq repo) details:
|
https://bugzilla.redhat.com/show_bug.cgi?id=1438100