Skip to content

Commit

Permalink
Fixes #7605: Policies errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ncharles committed Dec 14, 2015
1 parent a490667 commit b495c0f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
Expand Up @@ -372,7 +372,7 @@ class SystemVariableServiceImpl(
* - group_64f85ba8_39c7_418a_a099_24c2c2909dfd
* - group_serveurs_pre_prod
* and vars:
* - by_uuid["64f85ba8-39c7-418a-a099-24c2c2909dfd"] string => "Serveurs pré-prod"
* - "by_uuid[64f85ba8-39c7-418a-a099-24c2c2909dfd]" string => "Serveurs pré-prod"
* with a meta: { "inventory", "attribute_name=rudder_groups" }
*/
//build the list of nodeId -> names, taking care of special nodeIds for special target
Expand All @@ -388,7 +388,7 @@ class SystemVariableServiceImpl(
""
} else {
nodeGroups.map { case (id, name) =>
s"""by_uuid["${id}"] ${" "*(nodeMaxString-id.size)} string => "${name}",\n""" +
s""""by_uuid[${id}]" ${" "*(nodeMaxString-id.size)} string => "${name}",\n""" +
s""" ${" "*(nodeMaxString) } meta => { "inventory", "attribute_name=rudder_groups" };"""
}.mkString("\n")
}
Expand Down
Expand Up @@ -29,17 +29,17 @@
# - group_64f85ba8_39c7_418a_a099_24c2c2909dfd
# - group_serveurs_pre_prod
# and vars:
# - by_uuid["64f85ba8-39c7-418a-a099-24c2c2909dfd"] = "Serveurs pré-prod"
# - "by_uuid[64f85ba8-39c7-418a-a099-24c2c2909dfd]" = "Serveurs pré-prod"
# More over, each value of the array will have an attribute "meta": { "inventory", "attribute_name=rudder_groups" }
#
bundle common rudder_groups {

vars:
by_uuid["c8813416-316f-4307-9b6a-ca9c109a9fb0"] string => "Serveurs [€ðŋ] cassés",
"by_uuid[c8813416-316f-4307-9b6a-ca9c109a9fb0]" string => "Serveurs [€ðŋ] cassés",
meta => { "inventory", "attribute_name=rudder_groups" };
by_uuid["policyServer:root"] string => "special:policyServer_root",
"by_uuid[policyServer:root]" string => "special:policyServer_root",
meta => { "inventory", "attribute_name=rudder_groups" };
by_uuid["special:all"] string => "special:all",
"by_uuid[special:all]" string => "special:all",
meta => { "inventory", "attribute_name=rudder_groups" };

classes:
Expand Down
Expand Up @@ -29,7 +29,7 @@
# - group_64f85ba8_39c7_418a_a099_24c2c2909dfd
# - group_serveurs_pre_prod
# and vars:
# - by_uuid["64f85ba8-39c7-418a-a099-24c2c2909dfd"] = "Serveurs pré-prod"
# - "by_uuid[64f85ba8-39c7-418a-a099-24c2c2909dfd]" = "Serveurs pré-prod"
# More over, each value of the array will have an attribute "meta": { "inventory", "attribute_name=rudder_groups" }
#
bundle common rudder_groups {
Expand Down
Expand Up @@ -29,15 +29,15 @@
# - group_64f85ba8_39c7_418a_a099_24c2c2909dfd
# - group_serveurs_pre_prod
# and vars:
# - by_uuid["64f85ba8-39c7-418a-a099-24c2c2909dfd"] = "Serveurs pré-prod"
# - "by_uuid[64f85ba8-39c7-418a-a099-24c2c2909dfd]" = "Serveurs pré-prod"
# More over, each value of the array will have an attribute "meta": { "inventory", "attribute_name=rudder_groups" }
#
bundle common rudder_groups {

vars:
by_uuid["c8813416-316f-4307-9b6a-ca9c109a9fb0"] string => "Serveurs [€ðŋ] cassés",
"by_uuid[c8813416-316f-4307-9b6a-ca9c109a9fb0]" string => "Serveurs [€ðŋ] cassés",
meta => { "inventory", "attribute_name=rudder_groups" };
by_uuid["policyServer:root"] string => "special:policyServer_root",
"by_uuid[policyServer:root]" string => "special:policyServer_root",
meta => { "inventory", "attribute_name=rudder_groups" };

classes:
Expand Down
Expand Up @@ -29,7 +29,7 @@
# - group_64f85ba8_39c7_418a_a099_24c2c2909dfd
# - group_serveurs_pre_prod
# and vars:
# - by_uuid["64f85ba8-39c7-418a-a099-24c2c2909dfd"] = "Serveurs pré-prod"
# - "by_uuid[64f85ba8-39c7-418a-a099-24c2c2909dfd]" = "Serveurs pré-prod"
# More over, each value of the array will have an attribute "meta": { "inventory", "attribute_name=rudder_groups" }
#
bundle common rudder_groups {
Expand Down
Expand Up @@ -106,7 +106,7 @@ import org.specs2.specification.AfterEach
* of that file.
*/
@RunWith(classOf[JUnitRunner])
class WriteSystemTechniqueSpec extends Specification with Loggable with ContentMatchers with AfterAll with AfterEach {
class WriteSystemTechniqueTest extends Specification with Loggable with ContentMatchers with AfterAll with AfterEach {

//just a little sugar to stop hurting my eyes with new File(blablab, plop)
implicit class PathString(root: String) {
Expand Down

0 comments on commit b495c0f

Please sign in to comment.