Hide Forgot
Description of problem: When setting an override-value-order for an sc-param hammer is not correctly parsing the comma delimited order, rather taking that comma delimited list as a single argument. Version-Release number of selected component (if applicable): Sat 6.1.7 How reproducible: 100% Steps to Reproduce: 1. hammer -u admin -p password sc-param update --override true --default-value ["10.37.224.254"] --id 129 --parameter-type array --override-value-order fqdn','datacentre','region','lifecycle_environment','hostgroup','datacentre,lifecycle_environment' 2. 3. Actual results: It's creating a single order value ‘fqdn','datacentre','region','lifecycle_environment','hostgroup','datacentre,lifecycle_environment' Expected results: It should create an ordered list, ie. fqdn datacentre region lifecycle_environment hostgroup datacentre,lifecycle_environment Additional info:
Created redmine issue http://projects.theforeman.org/issues/17135 from this bug
*** Bug 1332182 has been marked as a duplicate of this bug. ***
Upstream bug assigned to orabin
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17135 has been resolved.
Worked on satellite 6.3 snap 29: hammer> sc-param info --id 16 Id: 16 Parameter: policies Default Value: ["foo"] Override: true Puppet class: foreman_scap_client Description: Type: array Hidden Value?: false Use puppet default: no Required: true Validator: Type: Rule: Override values: Merge overrides: no Merge default value: no Avoid duplicates: no Order: fqdn hostgroup os domain Values: Environments: common development example_env production Created at: 2017/12/21 17:00:22 Updated at: 2017/12/21 17:16:21 hammer> sc-param info --id 16 Id: 16 Parameter: policies Default Value: ["foo"] Override: true Puppet class: foreman_scap_client Description: Type: array Hidden Value?: false Use puppet default: no Required: true Validator: Type: Rule: Override values: Merge overrides: no Merge default value: no Avoid duplicates: no Order: fqdn hostgroup os domain Values: Environments: common development example_env production Created at: 2017/12/21 17:00:22 Updated at: 2017/12/21 17:16:21 Thus I'm moving this BZ to VERIFIED
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/RHSA-2018:0336