From: Walter Huf Date: Fri, 14 Mar 2014 15:06:45 +0000 (-0500) Subject: Fixes the duplicate process run when changing caps X-Git-Tag: v0.8.0~52^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4d466bee2a6ac29f2036d4b2127ebecb3c7ee2bc;p=ceph-cookbooks.git Fixes the duplicate process run when changing caps --- diff --git a/providers/client.rb b/providers/client.rb index 1ce56ba..b6cee48 100644 --- a/providers/client.rb +++ b/providers/client.rb @@ -71,6 +71,7 @@ def auth_set_key(keyname, caps) # delete an old key if it exists and is wrong Mixlib::ShellOut.new("ceph auth del #{keyname}").run_command # try to create again + get_or_create = Mixlib::ShellOut.new(cmd) get_or_create.run_command end get_or_create.error!