-
Notifications
You must be signed in to change notification settings - Fork 98
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
Fixes #5556, #8246, #8299 as they are related #157
Conversation
854a199
to
19e521c
Compare
Related test update is here: Check the test run: |
end | ||
|
||
attr_reader :name, :description | ||
|
||
def plural_name | ||
@plural_name || @name + 's' |
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.
Could ApipieBindings::Inflector.pluralize bring more flexibility?
|
19e521c
to
9083a79
Compare
The OS issue is covered by: |
9083a79
to
e79bd50
Compare
@mbacovsky updated |
The code looks good, all the three issues were fixed. |
e79bd50
to
acb51fe
Compare
@mbacovsky images are not searchable by anything else than ids. Puppet classes are tricky because the api returns hash |
acb51fe
to
83eb13f
Compare
Interesting, from https://github.com/theforeman/foreman/blob/develop/app/models/image.rb#L16 it seems scoped search for images is defined on name and work for me in hammer:
However this feature is not available in the UI. Thanks for the puppetclass, seems we are almost there 🐇 |
83eb13f
to
c0321d5
Compare
[test] |
Maybe missing a require on "hammer_cli/apipie/option_definition.rb"? /var/lib/workspace/workspace/test_hammer_cli_foreman_pull_request/ruby/1.8.7/lib/hammer_cli_foreman.rb:134: uninitialized constant HammerCLI::Apipie::OptionDefinition (HammerCLI::ModuleLoadingError) from /var/lib/workspace/workspace/test_hammer_cli_foreman_pull_request/ruby/1.8.7/test/unit/test_helper.rb:27:in `require' from /var/lib/workspace/workspace/test_hammer_cli_foreman_pull_request/ruby/1.8.7/test/unit/test_helper.rb:27 from /var/lib/workspace/workspace/test_hammer_cli_foreman_pull_request/ruby/1.8.7/test/unit/fact_test.rb:1:in `require' from /var/lib/workspace/workspace/test_hammer_cli_foreman_pull_request/ruby/1.8.7/test/unit/fact_test.rb:1 |
@domcleal, I've merged the related part, with that the OptionDefinition should be defined. |
Fixes #5556, #8246, #8299 as they are related
Since theforeman/hammer-cli-foreman#157, the argument has changed from --puppetclass-ids to --puppet-class-ids. Looks up the argument name from help output as it's hard to judge which version of Hammer is being used.
Since theforeman/hammer-cli-foreman#157, the argument has changed from --puppetclass-ids to --puppet-class-ids. Looks up the argument name from help output as it's hard to judge which version of Hammer is being used.
Needs to be merged together with theforeman/hammer-cli#151