Project

General

Profile

Actions

Bug #17135

closed

Creating override-value-order for smart classes using CLI doesnt handle comma delimited order

Added by Ori Rabin almost 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Smart variables
Target version:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1328613

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:


Related issues 2 (0 open2 closed)

Related to Hammer CLI - Bug #17355: Indistinguishable multiple matchers for override value orderClosedTomáš Strachota11/16/2016Actions
Blocked by Hammer CLI - Bug #17180: Parameters of type list can not include values containing commasClosedMartin Bacovsky11/02/2016Actions
Actions

Also available in: Atom PDF