Bug #8974
closedUpdating host-collection using only id is failing
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1171669
Description of problem:
Updating host-collection using id is failing
- rpm -q foreman
foreman-1.8.0-0.develop.201412031715git5ba6c39.el7.noarch
How reproducible:
everytime
Steps to Reproduce:
1.# hammer -v -u admin -p changeme --output csv host-collection update --id="38" --organization-id="27" --description="<caption>mVeDNOpJCjsKMwf</caption>"
[ERROR 2014-12-08 05:40:53 Exception] Missing arguments for 'name'
Could not update the the host collection:
Missing arguments for 'name'
[ERROR 2014-12-08 05:40:53 Exception]
ApipieBindings::MissingArgumentsError (Missing arguments for 'name'):
/usr/share/gems/gems/apipie-bindings-0.0.11/lib/apipie_bindings/action.rb:62:in `validate!'
/usr/share/gems/gems/apipie-bindings-0.0.11/lib/apipie_bindings/api.rb:158:in `call'
/usr/share/gems/gems/apipie-bindings-0.0.11/lib/apipie_bindings/resource.rb:14:in `call'
/usr/share/gems/gems/hammer_cli-0.1.3/lib/hammer_cli/apipie/command.rb:42:in `send_request'
/usr/share/gems/gems/hammer_cli_foreman-0.1.3/lib/hammer_cli_foreman/commands.rb:165:in `send_request'
/usr/share/gems/gems/hammer_cli-0.1.3/lib/hammer_cli/apipie/command.rb:33:in `execute'
/usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:68:in `run'
/usr/share/gems/gems/hammer_cli-0.1.3/lib/hammer_cli/abstract.rb:22:in `run'
/usr/share/gems/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:in `execute'
/usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:68:in `run'
/usr/share/gems/gems/hammer_cli-0.1.3/lib/hammer_cli/abstract.rb:22:in `run'
/usr/share/gems/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:in `execute'
/usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:68:in `run'
/usr/share/gems/gems/hammer_cli-0.1.3/lib/hammer_cli/abstract.rb:22:in `run'
/usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:126:in `run'
/usr/share/gems/gems/hammer_cli-0.1.3/bin/hammer:108:in `<top (required)>'
/usr/bin/hammer:23:in `load'
/usr/bin/hammer:23:in `<main>'
2.# hammer -v -u admin -p changeme --output csv host-collection update --name="wZuvDJvLkjQpEvX" --organization-id="27" --description="<caption>mVeDNOpJCjsKMwf</caption>"
Message,Id,Name
Host collection updated,38,wZuvDJvLkjQpEvX
3.
Actual results:
host collection updation using --id fails
Expected results:
host collection using --id should work
additional info: