Bug 1292381
Summary: | hammer fails with parameters that contains a commas | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Christophe Augello <caugello> |
Component: | Hammer | Assignee: | Tomas Strachota <tstrachota> |
Status: | CLOSED ERRATA | QA Contact: | jcallaha |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.1.5 | CC: | bbuckingham, cwelton, jcallaha, tstrachota |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://projects.theforeman.org/issues/12869 | ||
Whiteboard: | |||
Fixed In Version: | rubygem-hammer_cli-0.5.1.6-1 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-07-27 11:02:17 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Christophe Augello
2015-12-17 09:26:52 UTC
Created redmine issue http://projects.theforeman.org/issues/12869 from this bug Unfortunately capabilities of the current format are quite limited. You can only enter either --parameters='key1=value1,key2=value2' or --parameters='key1=[val1,val2,val3]'. Would it be acceptable if we added support for json format with backward compatibility with the current one? Parameters could be then entered as both: --parameters='key1=value1' or --parameters='{"key1": "value1", "nested": {"array": [1, 2]}}' We have json parameters already in the hammer so the implementation should be trivial. Moving to POST since upstream bug http://projects.theforeman.org/issues/12869 has been closed ------------- Anonymous Applied in changeset commit:1c83d898364270ac7f00eef171d5b2a964e04d25. QE, please note that we've switched to json format for more complicated parameter strucutres as it was described in https://bugzilla.redhat.com/show_bug.cgi?id=1292381#c3. Verified in Satellite 6.2 Beta Snap 13. Using a json format allows you to specify multiple items without encountering the issue initially reported. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1501 |