- From: "Julian C. Dunn" <
>
- To: "
" <
>
- Subject: [chef] Re: Troubleshooting powershell_script resource
- Date: Tue, 17 Jun 2014 23:39:40 -0700
You might consider using the convert_boolean_return parameter to
actually raise an error if the Powershell script fails.
http://docs.opscode.com/resource_powershell_script.html
- Julian
On Tue, Jun 17, 2014 at 1:28 PM, Kapil Shardha
<
>
wrote:
>
Hi All,
>
>
>
>
I have been working on writing a new recipe that makes use of
>
powershell_script resource. I had some syntax error in the script code but
>
it was not pointed out by chef-client run. Rather, the chef-client run would
>
say that the resource ran successfully. Though I was able to find out the
>
syntax error later but I was wondering if there is a better way to
>
troubleshoot syntax errors in powershell_script resource. I tried running
>
chef-client with –l debug switch but that gave not much information either.
>
>
>
>
I have seen similar behavior with the use of quotation marks and I had to
>
escape those with “\” to make it work.
>
>
>
>
Thanks
>
>
>
>
-Kapil
>
>
>
>
>
________________________________
>
>
This email and any accompanying documents may contain privileged or
>
otherwise confidential information of, and/or is the property of Education
>
Management Solutions, Inc. If you are not the intended recipient, please
>
immediately advise the sender by reply email & delete the message & any
>
attachments without using, copying or disclosing the contents. Thank you.
--
[ Julian C. Dunn
<
>
* Sorry, I'm ]
[ WWW:
http://www.aquezada.com/staff/julian * only Web 1.0 ]
[
gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]
Archive powered by MHonArc 2.6.16.