Displaying 1 result from an estimated 1 matches for "am_os_type".
Did you mean:
__os_type
2013 Oct 21
3
how to pass the value to custom function?
...> cls = args[0]
>
> if oss.key?(cls)
> return oss[cls][0]
> else
> return ''undefined''
> end
> end
> end
>
and then in my module''s init.pp, I have this:
$h= am_running_oss($::am_os_type)
> notify { "=*=*= amRunningOS <|:|> ${h} =*=*=*=*=*=*=*=": }
>
(am_os_type is a fact, that returns *win*, *mac* or *linux* based on the
node type)
I was expecting to see *Jaguar* as the return value but I get *undefined*instead. What am I doing wrong? Is there anything st...