Project

General

Profile

Bug #12642

Inline class parameter override shown in Ruby hash syntax

Added by Dominic Cleal over 3 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Smart Variables
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Since #11458, overridden smart class parameters with type=hash are showing in the host#edit form in a Ruby-style hash rather than the YAML or JSON representation. This prevents the host being saved as the syntax isn't understood on save.

Before it showed as a: b and now shows as {"a"=>"b"} in the inline text box.

Screenshot from 2015-12-01 11-01-44.png View Screenshot from 2015-12-01 11-01-44.png 64.2 KB parameter configuration Dominic Cleal, 12/01/2015 06:02 AM
Screenshot from 2015-12-01 11-02-10.png View Screenshot from 2015-12-01 11-02-10.png 6.65 KB host#edit overridden parameter, before on 95d7064 Dominic Cleal, 12/01/2015 06:02 AM
Screenshot from 2015-12-01 11-01-50.png View Screenshot from 2015-12-01 11-01-50.png 13.4 KB host#edit overridden parameter, after on 6501082 Dominic Cleal, 12/01/2015 06:03 AM
Screenshot%20from%202015 12 01%2011 01 44 Screenshot%20from%202015 12 01%2011 02 10 Screenshot%20from%202015 12 01%2011 01 50

Related issues

Related to Foreman - Refactor #11458: Allow overriding parameters inline in host & hostgroup formsClosed2015-08-24

Associated revisions

Revision 03c609eb (diff)
Added by Tomer Brisker over 3 years ago

Fixes #12642 - Show overriden values before type cast on host edit form

History

#1 Updated by Dominic Cleal over 3 years ago

  • Related to Refactor #11458: Allow overriding parameters inline in host & hostgroup forms added

#2 Updated by Tomer Brisker over 3 years ago

  • Status changed from New to Assigned
  • Assignee set to Tomer Brisker

#3 Updated by The Foreman Bot over 3 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2949 added

#4 Updated by Anonymous over 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF