projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Drop apt.buildd.debian.org
[mirror/dsa-puppet.git]
/
modules
/
puppetmaster
/
lib
/
puppet
/
parser
/
functions
/
onion_global_service_hostname.rb
diff --git
a/modules/puppetmaster/lib/puppet/parser/functions/onion_global_service_hostname.rb
b/modules/puppetmaster/lib/puppet/parser/functions/onion_global_service_hostname.rb
index
41e160d
..
22ee3bb
100644
(file)
--- a/
modules/puppetmaster/lib/puppet/parser/functions/onion_global_service_hostname.rb
+++ b/
modules/puppetmaster/lib/puppet/parser/functions/onion_global_service_hostname.rb
@@
-16,7
+16,8
@@
module Puppet::Parser::Functions
require 'json'
parsed = {}
facts.each_line do |l|
- p.update(JSON.parse(l))
+ p = JSON.parse(l)
+ parsed.update(p) if p
end
return parsed[servicename]
end