On Wed, Sep 01, 2010 at 09:02:32PM +0200, Tollef Fog Heen wrote:
> Another annoying thing is that rt(1) exits 0 even when operations fail,
> leading me to have chef recipes that do:
>
> execute "create queue" do
> command "rt create -t queue set name='#{queue}' set
> correspondaddress=#{que...@#{node[:domain]} set
> commentaddress=#{queue}-comm...@#{node[:domain]}"
> environment({ "RTCONFIG" => "/etc/request-tracker3.8/rt_root.conf" })
> not_if "rt show queue/#{queue} | grep -q '^Name: #{queue}$'",
> :environment => { "RTCONFIG" => "/etc/request-tracker3.8/rt_root.conf" }
> end
>
> execute "verify queue existence" do
> command "rt show queue/#{queue} | grep -q '^Name: #{queue}$'"
> environment({ "RTCONFIG" => "/etc/request-tracker3.8/rt_root.conf" })
> end
>
> which is a bit silly.
>
> Do you want a separate bug report for that?
Yeah, that's more definitely a (minor) bug.
Cheers,
Dominic.
--
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]