Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: hiera/puppet_node_classifier.rb

Issue 29366882: Issue 3574 - Refactor Puppet class base into class adblockplus (Closed)
Patch Set: For comment 6 Created Dec. 6, 2016, 11:42 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Vagrantfile ('k') | modules/adblockplus/manifests/init.pp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: hiera/puppet_node_classifier.rb
===================================================================
--- a/hiera/puppet_node_classifier.rb
+++ b/hiera/puppet_node_classifier.rb
@@ -64,7 +64,7 @@
# configuration file:
begin
config = YAML.load_file(HOSTS_CONFIG)
- servers = config.fetch("servers", {})
+ servers = config.fetch("adblockplus::hosts", {})
host = servers.fetch(hostname, {})
role = host.fetch("role", "default")
rescue Exception => error
« no previous file with comments | « Vagrantfile ('k') | modules/adblockplus/manifests/init.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld