Project

General

Profile

Actions

Bug #16119

closed

Cannot update smart variable name with --new-name

Added by Ivan Necas over 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman commands (obsolete)
Target version:
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1367032
Description of problem:

Before Update:
hammer -v -u admin -p changeme smart-variable info --id="100"
Id: 100
Name: YJIQOcdDFQ1
Default Value:
Type: string
Puppet class: ntp
Description:
Hidden Value?: false
Validator:
Type:
Rule:
Override values:
Merge overrides: no
Merge default value: no
Avoid duplicates: no
Order: fqdn, hostgroup, os, domain
Values:
Created at: 2016/08/15 10:36:30
Updated at: 2016/08/15 10:42:18

Updating entity:
hammer -v -u admin -p changeme --output=csv smart-variable update --id="100" --new-name="XO4txkfDEUD" --puppet-class="ntp"
Message,Id
Smart variable [YJIQOcdDFQ1] updated,100

Nothing happened and entity has old name:
hammer -v -u admin -p changeme smart-variable info --id="100"
Id: 100
Name: YJIQOcdDFQ1
Default Value:
Type: string
Puppet class: ntp
Description:
Hidden Value?: false
Validator:
Type:
Rule:
Override values:
Merge overrides: no
Merge default value: no
Avoid duplicates: no
Order: fqdn, hostgroup, os, domain
Values:
Created at: 2016/08/15 10:36:30
Updated at: 2016/08/15 10:42:36

Always

Steps to Reproduce:
1. Create smart variable for any puppet class
2. Try to update it with new value for its name
3.

Actual results:
Entity is not updated

Expected results:
Entity updated properly

Actions

Also available in: Atom PDF