-
Notifications
You must be signed in to change notification settings - Fork 897
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
Fixed InventoryCollection Vm and Template #17602
Fixed InventoryCollection Vm and Template #17602
Conversation
Cc @agrare Weird that it doesn't cause problems in all previous tests except vmware. Btw I finally figured out what means "builder_params" :) Can I rename method |
@miq-bot add_label bug |
Default values name and location were missing
5f20f80
to
b08991d
Compare
Completely agree, default values is a much better name |
@slemrmartin why do we need default values for name and location? IMO the parser should not leave these blank. |
@agrare because you specify them to definitions in InventoryCollectionDefault and vmware specs fail without it |
@slemrmartin hm okay let me check the vmware specs because I don't think this should be needed. I'd rather it fail to save if vendor or name isn't passed because that is a case that shouldn't happen. |
Hey @slemrmartin I pushed a fix for this agrare/manageiq-providers-vmware@cbcea7e |
@agrare it looks good, cherry-picked. |
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.
👍 LGTM
@slemrmartin yeah vendor can't be in the base defaults because it is provider dependent, here is where the list of vendors for vm_or_template is defined https://github.com/ManageIQ/manageiq/blob/master/app/models/vm_or_template.rb#L40-L53 I'd be fine if that was just in the parser since it just needs to be one or two places in the parser. |
name, location and vendor
7191a8e
to
74fa4dc
Compare
I know, I derived it from persister |
Checked commits slemrmartin/manageiq@b08991d~...74fa4dc with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@slemrmartin in that case I'm not sure what you weren't sure about up here ☝️ #17602 (comment) haha |
I'm sure about value, not sure about from where I get it for refactoring :)) but probably I moved provider-specific definitions of vendor from amazon and azure to core..but nevermind :) |
Default values
name
andlocation
were missingIssue: #17396