Project

General

Profile

Bug #8974

Updating host-collection using only id is failing

Added by dustin tsang about 8 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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:

Associated revisions

Revision 7e37fb8d (diff)
Added by dustin tsang about 8 years ago

Fixes #8974 - HC make name optional on update

This allows the user to update other attributes on the host collection
without having to pass the name in everytime.

Revision 3247cc60
Added by dustin tsang about 8 years ago

Merge pull request #4939 from dustints/hc_update_name_opt

Fixes #8974 - HC make name optional on update

History

#1 Updated by The Foreman Bot about 8 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 ()

#2 Updated by dustin tsang about 8 years ago

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

#3 Updated by Eric Helms about 8 years ago

  • Triaged changed from No to Yes

#4 Updated by Eric Helms about 8 years ago

  • Legacy Backlogs Release (now unused) set to 23

Also available in: Atom PDF