Project

General

Custom queries

Profile

Actions

Bug #15084

open

foreman_config_entry is not idempotent with arrays

Added by Jonathan Camara about 9 years ago. Updated about 9 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
#1

Updated by Dominic Cleal about 9 years ago

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

Updated by Dominic Cleal about 9 years ago

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

Updated by Dominic Cleal about 9 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