Project

General

Profile

Actions

Bug #23463

closed

YAML rendering of external nodes generates incorrect data if hashes are used

Added by Anonymous over 6 years ago. Updated over 6 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Parameters
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Rendering the external YAML data of a host causes Foreman to generate incorrect data if it includes hashes that are set in parameterised classes.

Generated YAML:

classes:
  easystack:
    ceph_monitors:
    - !ruby/hash:ActiveSupport::HashWithIndifferentAccess
      fqdn: [RETRACTED]
      ip:  [RETRACTED]
      master: true
    - !ruby/hash:ActiveSupport::HashWithIndifferentAccess
      fqdn:  [RETRACTED]
      ip:  [RETRACTED]
      master: true
    - !ruby/hash:ActiveSupport::HashWithIndifferentAccess
      fqdn:  [RETRACTED]
      ip:  [RETRACTED]
      master: true

This seems to be a duplicate of #9240 and was introduced again somewhere between 1.16.1 and 1.17.0.


Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #23382: Editing Smart Class Parameter of type YAML creates malformed value in release 1.17.0ClosedDaniel Lobato Garcia04/24/2018Actions
Actions

Also available in: Atom PDF