On Tue, May 10, 2011 at 3:16 PM, Disconnect wrote:
> Couple quick examples. In the dpkg/apt module:
> if ($lsbdistcodename == '') {
> err("LsbDistCodename not set on $fqdn. Not configuring apt!")
> } else {
>
> Or use '': in a case statement, eg:
> case $foo {
> '1': { foo }
> '': { un
Couple quick examples. In the dpkg/apt module:
if ($lsbdistcodename == '') {
err("LsbDistCodename not set on $fqdn. Not configuring apt!")
} else {
Or use '': in a case statement, eg:
case $foo {
'1': { foo }
'': { undefined }
default: { other }
}
I'm having trouble finding specific
> We work around it by checking the existence of the fact/value before using it
Is this done in the template file or somewhere else? Can you please
supply dummy code as an example?
Thanks
On May 5, 12:01 am, Disconnect wrote:
> Although good advice (pluginsync is win) that still doesn't solve