- From: Ash Berlin <
>
- To:
- Subject: [chef] Re: Running resources & not_if { } qualifier
- Date: Thu, 2 Dec 2010 15:20:09 +0000
On 2 Dec 2010, at 15:13, Dreamcat4 wrote:
>
Hi
>
When encountering the not_if qualifier, subsequent resource actions are not
>
run?
>
>
>
rvm default_ruby do
>
action :install
>
not_if { default_ruby == "system" } # <---- evaluates to 'true'
>
end
>
>
rvm default_ruby do # <---- this is skipped
>
action :set_default
>
end
>
>
>
>
dreamcat4
>
I suspect this is because they both have the same name. I think this will
work instead:
rvm default_ruby do
action default_ruby == "system" ? [ :install, :set_default ] : [
:set_default ]
end
Archive powered by MHonArc 2.6.16.