]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cookbooks.git/commitdiff
Fixes the duplicate process run when changing caps
authorWalter Huf <walter.huf@corvisa.com>
Fri, 14 Mar 2014 15:06:45 +0000 (10:06 -0500)
committerWalter Huf <walter.huf@corvisa.com>
Fri, 14 Mar 2014 15:06:45 +0000 (10:06 -0500)
providers/client.rb

index 1ce56ba45ad50595ef94ba5955e9fd2060cea7fb..b6cee488a6f5ed8b0caeb83d553054f92add7df9 100644 (file)
@@ -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!