Project

General

Profile

Actions

Bug #6161

closed

Value of Smart Variables doesn't show up on Foreman UI when it sets using API call

Added by Priyanka Choudhary over 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Tried to use foreman api to set the values for smart variables in a hostgroup. The api did work and responded correctly.

This is the curl i used to set the variables in hostgroup:

curl -H 'content-type: application/json' -H 'Accept: application/json' -k -u '$USER:$PASS' $FOREMAN_URL/api/v2/smart_class_parameters/SMART_VARIABLE/override_values -X POST -d '{"override_value":{"value":"VALUE","match":"hostgroup=HOSTGROUP"}}'

Output : {"id":19858,"match":"hostgroup=HOSTGROUP","value":"VALUE","created_at":"2014-06-11T11:10:42Z","updated_at":"2014-06-11T11:10:42Z"}

Problem Statement:
The values of the smart variables doesn't show up on the Foreman UI

Actions

Also available in: Atom PDF