Displaying 1 result from an estimated 1 matches for "extraaaaa".
2013 Mar 07
1
HELP:Custom function didn't work
...dbh.query("SELECT host_type FROM host_extra_info where
name=''" + args[0] + "''")
# return res.fetch_row
puts res.fetch_row
res.free
dbh.close if dbh
end
end
- Also I wrote a .pp file to test it:
#/tmp/1.pp
$extraaaaa = hosttype("my_hostname")
notify { $extraaaaa: }
Test results(the red value is the query result from db):
[root@pm tmp]# puppet 1.pp
notice: server
notice: /Stage[main]//Notify[server]/message: defined ''message'' as ''server''
notice: Finished catal...