Awesome David, many thanks for the explanation and the code as well, works 
like a charm.

Regards,
Vikas


On Friday, 15 August 2014 06:47:58 UTC+10, David Lutterkort wrote:
>
> Hi Vikas,
>
> On Thu, Aug 14, 2014 at 12:09 AM, Vikas Kumar <[email protected] 
> <javascript:>> wrote:
>  
>
>> But, this isn't. I tried few combinations of single and double quotes, 
>> but none of them are working :(
>> "setm *[label() =~ glob('ifcfg-eth*')] NM_CONTROLLED \'"no"\'",
>>
>>
> The problem is that the Puppet string is enclosed in double quotes, and so 
> the double quote before 'no' ends that string. If you want to quote the 
> 'no' in the file you'll have to escape the double quotes (and there's no 
> need to escape the single quotes):
>
> "setm *[label() =~ glob('ifcfg-eth*')] NM_CONTROLLED '\"no\"'"
>
> Though in this case, there's no need to quote the 'no'.
>
> David
>
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/aabe1d6c-02b1-44bd-a72d-d6c42bc9f66b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to