Skip to content

Commit 31f886c

Browse files
committed
(GH-cat-9) syntax:hiera:yaml fixes
1 parent cb16350 commit 31f886c

File tree

19 files changed

+82
-87
lines changed

19 files changed

+82
-87
lines changed

manifests/config/context.pp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
incl => "${_catalina_base}/conf/context.xml",
2828
changes => $changes,
2929
show_diff => $show_diff,
30-
3130
}
3231
}
3332
}

manifests/config/context/environment.pp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@
8282
}
8383

8484
$changes = delete_undef_values(flatten([
85-
$set_name,
86-
$set_type,
87-
$set_value,
88-
$set_override,
89-
$set_description,
90-
$set_additional_attributes,
91-
$rm_attributes_to_remove,
85+
$set_name,
86+
$set_type,
87+
$set_value,
88+
$set_override,
89+
$set_description,
90+
$set_additional_attributes,
91+
$rm_attributes_to_remove,
9292
]))
9393
}
9494

manifests/config/context/manager.pp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
if ! empty($additional_attributes) {
4444
$set_additional_attributes =
4545
suffix(prefix(join_keys_to_values($additional_attributes, " '"),
46-
"set ${base_path}/#attribute/"), "'")
46+
"set ${base_path}/#attribute/"), "'")
4747
} else {
4848
$set_additional_attributes = undef
4949
}
@@ -55,9 +55,9 @@
5555
}
5656

5757
$changes = delete_undef_values(flatten([
58-
$set_name,
59-
$set_additional_attributes,
60-
$rm_attributes_to_remove,
58+
$set_name,
59+
$set_additional_attributes,
60+
$rm_attributes_to_remove,
6161
]))
6262
}
6363

manifests/config/context/parameter.pp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
$changes = "rm ${base_path}"
3333
}
3434
else {
35-
3635
if empty($value) {
3736
fail('$value must be specified')
3837
}
@@ -54,10 +53,10 @@
5453
}
5554

5655
$changes = delete_undef_values(flatten([
57-
$set_name,
58-
$set_value,
59-
$set_override,
60-
$set_description,
56+
$set_name,
57+
$set_value,
58+
$set_override,
59+
$set_description,
6160
]))
6261
}
6362

manifests/config/context/resource.pp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,11 @@
6060
$rm_attributes_to_remove = undef
6161
}
6262

63-
6463
$changes = delete_undef_values(flatten([
65-
$set_name,
66-
$set_type,
67-
$set_additional_attributes,
68-
$rm_attributes_to_remove,
64+
$set_name,
65+
$set_type,
66+
$set_additional_attributes,
67+
$rm_attributes_to_remove,
6968
]))
7069
}
7170

manifests/config/context/resourcelink.pp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
}
5555

5656
$augeaschanges = delete_undef_values(flatten([
57-
$set_name,
58-
$set_type,
59-
$set_additional_attributes,
60-
$rm_attributes_to_remove,
57+
$set_name,
58+
$set_type,
59+
$set_additional_attributes,
60+
$rm_attributes_to_remove,
6161
]))
6262
}
6363

manifests/config/context/valve.pp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@
8282
}
8383

8484
if $_name !~ Undef {
85-
$attributes = {'className' => $_class_name, 'name' => $_name} + $additional_attributes
85+
$attributes = { 'className' => $_class_name, 'name' => $_name } + $additional_attributes
8686
} else {
87-
$attributes = {'className' => $_class_name} + $additional_attributes
87+
$attributes = { 'className' => $_class_name } + $additional_attributes
8888
}
8989

9090
$augeas_filter = $_uniqueness_attributes.map |$attr| {
@@ -109,9 +109,9 @@
109109
}
110110

111111
$changes = delete_undef_values(flatten([
112-
$defnode_valve,
113-
$set_attributes,
114-
$rm_attributes,
112+
$defnode_valve,
113+
$set_attributes,
114+
$rm_attributes,
115115
]))
116116
}
117117

manifests/config/server/connector.pp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@
9292
}
9393

9494
$changes = delete_undef_values(flatten([
95-
$__purge_connectors,
96-
$_port,
97-
$_protocol_change,
98-
$_additional_attributes,
99-
$_attributes_to_remove,
95+
$__purge_connectors,
96+
$_port,
97+
$_protocol_change,
98+
$_additional_attributes,
99+
$_attributes_to_remove,
100100
]))
101101
}
102102

manifests/config/server/engine.pp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@
103103
}
104104

105105
$changes = delete_undef_values([
106-
$_name_change,
107-
$_default_host,
108-
$_background_processor_delay,
109-
$_class_name,
110-
$_jvm_route,
111-
$_start_stop_threads,
106+
$_name_change,
107+
$_default_host,
108+
$_background_processor_delay,
109+
$_class_name,
110+
$_jvm_route,
111+
$_start_stop_threads,
112112
])
113113

114114
augeas { "${_catalina_base}-${parent_service}-engine":

manifests/config/server/globalnamingresource.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
}
6565

6666
$changes = delete_undef_values(flatten([
67-
$set_additional_attributes,
68-
$rm_attributes_to_remove,
67+
$set_additional_attributes,
68+
$rm_attributes_to_remove,
6969
]))
7070

7171
# (MODULES-3353) This should use $set_name in $changes like

0 commit comments

Comments
 (0)