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: Created Dec. 6, 2016, 10:40 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
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

Powered by Google App Engine
This is Rietveld