From: Peter Palfrader Date: Wed, 2 Mar 2011 17:56:16 +0000 (+0100) Subject: nope, we cannot call functions in arguments X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=e85c72adcbee777243a5bebc2d7591ed105dd7fb;p=mirror%2Fdsa-puppet.git nope, we cannot call functions in arguments --- diff --git a/manifests/site.pp b/manifests/site.pp index 2f4f1291b..cef0b874c 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -17,7 +17,8 @@ node default { $localinfo = yamlinfo('*', "/etc/puppet/modules/debian-org/misc/local.yaml") $nodeinfo = nodeinfo($fqdn, "/etc/puppet/modules/debian-org/misc/local.yaml") $allnodeinfo = allnodeinfo("sshRSAHostKey ipHostNumber", "purpose mXRecord") - notice( sprintf("hoster for %s is %s", $fqdn, getfromhash($nodeinfo, 'hoster', 'name') ) + $tmp = getfromhash($nodeinfo, 'hoster', 'name') + notice( sprintf("hoster for %s is %s", $fqdn, $tmp ) include munin-node include syslog-ng