Project

General

Profile

Actions

Bug #8974

closed

Updating host-collection using only id is failing

Added by dustin tsang over 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1171669
Description of problem:
Updating host-collection using id is failing

Version-Release number of selected component (if applicable):
  1. 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:

Actions #1

Updated by The Foreman Bot over 9 years ago

  • Status changed from New to Ready For Testing
  • Target version set to 63
  • Pull request https://github.com/Katello/katello/pull/4939 added
  • Pull request deleted ()
Actions #2

Updated by dustin tsang about 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #3

Updated by Eric Helms about 9 years ago

  • Triaged changed from No to Yes
Actions #4

Updated by Eric Helms about 9 years ago

  • translation missing: en.field_release set to 23
Actions

Also available in: Atom PDF