Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1131559 - Hammer - remote install packages: unusable command which contains parameter with array
Summary: Hammer - remote install packages: unusable command which contains parameter w...
Keywords:
Status: CLOSED DUPLICATE of bug 1131230
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: Unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-19 14:49 UTC by Pavel Studeník
Modified: 2017-02-23 21:04 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-19 15:24:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Pavel Studeník 2014-08-19 14:49:21 UTC
Description of problem:

I tried to used hammer for installation remote packages to system. I can't find way to create a list in bash for hammer.

>> hammer -u admin -p PASS content-host package install --content-host-id 7097a1fc-713f-429c-bf99-6914a79243e4 --packages [zsh]
Could not install packages:
  undefined method `each' for "[zsh]":String

>> hammer -u admin -p PASS content-host package install --content-host-id 7097a1fc-713f-429c-bf99-6914a79243e4 --packages zsh
Could not install packages:
  undefined method `each' for "zsh":String

>> hammer -u admin -p changeme content-host package install --content-host-id 7097a1fc-713f-429c-bf99-6914a79243e4 --packages 'zsh'
Could not install packages:
  undefined method `each' for "zsh":Strin

I found same problem with install/remove/upgrade.


Version-Release number of selected component (if applicable):
rubygem-hammer_cli-0.1.1-11.el6sat.noarch
rubygem-hammer_cli_foreman-0.1.1-15.el6sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3-3.el6sat.noarch
rubygem-hammer_cli_katello-0.0.4-12.el6sat.noarch


How reproducible:
always

Steps to Reproduce:
1. to register system
2. to get id of content-host
3. to use hammer for remote install package

Actual results:
fail

Expected results:
work correct

Comment 1 RHEL Program Management 2014-08-19 14:53:19 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 sthirugn@redhat.com 2014-08-19 15:15:27 UTC
Perhaps duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1131230 which I created yesterday?

Comment 4 Pavel Studeník 2014-08-19 15:24:36 UTC
Yes. I closed it.

*** This bug has been marked as a duplicate of bug 1131230 ***


Note You need to log in before you can comment on or make changes to this bug.