mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaConfigHelper: render dictionaries sorted
Adjusted test scenario
This commit is contained in:
parent
670b932526
commit
fdfedbae04
@ -126,8 +126,9 @@ class IcingaConfigHelper
|
||||
{
|
||||
$vals = array();
|
||||
foreach ($dictionary as $key => $value) {
|
||||
$vals[] = rtrim(self::renderKeyValue(self::renderString($key), $value));
|
||||
$vals[$key] = rtrim(self::renderKeyValue(self::renderString($key), $value));
|
||||
}
|
||||
ksort($vals);
|
||||
|
||||
// Prefix for toConfigString?
|
||||
return "{\n" . implode("\n", $vals) . "\n}";
|
||||
|
@ -5,8 +5,8 @@ object Host "___TEST___host" {
|
||||
vars.test2 = 17
|
||||
vars.test3 = false
|
||||
vars.test4 = {
|
||||
"this" = "is"
|
||||
"a" = [ "dict", "ionary" ]
|
||||
"this" = "is"
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user