case $brokenhosts {
"true": { include hosts }
}
- case getfromhash($hosterinfo, "name") {
+ case getfromhash($hosterinfo, 'name') {
"ubcece", "darmstadt", "ftcollins", "grnet": { include resolv }
}
case $portforwarder_user_exists {
$KCODE = 'utf-8'
- ans = {"name": "unknown"}
+ ans = {"name" => "unknown"}
yaml = YAML.load_file(yamlfile)
if (nodeinfo['ldap'].has_key?('ipHostNumber'))
ans = yaml[hoster]
ans['name'] = hoster
end
- rescue Exception => e
+ rescue => e
raise "Error while trying to match addr #{addr} for net #{net}: #{e.message}\n#{e.backtrace}"
end
end