Krzysztof Wilczynski
50cb2cd05a
Small re-factor of fact function.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-25 23:32:41 +01:00
Krzysztof Wilczynski
bb231bdfc2
Updated help message.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-25 02:46:12 +01:00
Krzysztof Wilczynski
61936fdeaa
Updated error check and reporting. Also we now return empty
...
string value i.e. "" instead of raising an exception when a
particular fact is not present. We also make use of strinterp()
explicitly to evaluate arguments passed to the function.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-25 02:02:00 +01:00
Krzysztof Wilczynski
0b1aab2ed5
Small changes. Mainly to formatting of the help provided.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-23 01:56:30 +01:00
Krzysztof Wilczynski
399dd8cca8
First version. A function for Puppet that allows to retrieve a fact from Facter
...
easily instead of resorting to awful "inline_template" use-and-abuse practices.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-23 01:28:11 +01:00