ipAddrs = args[0]
yamlfile = args[1]
+ parser = Puppet::Parser::Parser.new(environment)
parser.watch_file(yamlfile)
- $KCODE = 'utf-8'
-
ans = {"name" => "unknown"}
yaml = YAML.load_file(yamlfile)
end
end
end
+ if not ans['longname']
+ ans['longname'] = ans['name']
+ end
return ans
end
end