Project

General

Profile

Actions

Bug #15084

open

foreman_config_entry is not idempotent with arrays

Added by Jonathan Camara almost 8 years ago. Updated almost 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Foreman modules
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When modifying a config value that requires an array, the foreman_config_entry type is not idempotent.

Example:

foreman_config_entry {'trusted_puppetmaster_hosts':
    value => "[\"puppet1.example.com\", \"puppet2.example.com\"]",
}

returns on the second run:

value changed '"[\"puppet1.example.com\", \"puppet2.example.com\"]"' to '["puppet1.example.com", "puppet2.example.com"]'

Related issues 1 (0 open1 closed)

Related to Foreman - Bug #14778: Cannot use foreman-rake config to set complex (array) settingsClosedLuis Fernández04/22/2016Actions
Actions #1

Updated by Dominic Cleal almost 8 years ago

  • Related to Bug #14778: Cannot use foreman-rake config to set complex (array) settings added
Actions #2

Updated by Dominic Cleal almost 8 years ago

  • Category set to Settings
  • Status changed from New to Feedback

I think this might be fixed by #14778, which changes the output of arrays etc. Please give the patch a try or 1.11.2, which is due today if all goes well.

Actions #3

Updated by Jonathan Camara almost 8 years ago

Gave 1.11.2 a try, and the second run now returns

value changed '["puppet1.example.com", "puppet2.example.com"]' to '["puppet1.example.com", "puppet2.example.com"]'
Actions #4

Updated by Dominic Cleal almost 8 years ago

  • Project changed from Foreman to Installer
  • Category changed from Settings to Foreman modules
  • Status changed from Feedback to New
Actions

Also available in: Atom PDF