]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Fix problem with ceph_key in python3
authorJairo Llopis <Yajo@users.noreply.github.com>
Thu, 4 Oct 2018 05:48:03 +0000 (07:48 +0200)
committerSébastien Han <seb@redhat.com>
Fri, 26 Oct 2018 13:29:37 +0000 (15:29 +0200)
Pretty basic problem of iteritems removal.

Signed-off-by: Jairo Llopis <yajo.sk8@gmail.com>
library/ceph_key.py

index c6803302f3a68ebde7e1e1d5aa5fd6c2dbb74a46..e6d66bac16d7f45ab379ebc18dcdffec08a5d480 100644 (file)
@@ -205,7 +205,7 @@ def generate_caps(cmd, _type, caps):
     Generate CephX capabilities list
     '''
 
-    for k, v in caps.iteritems():
+    for k, v in caps.items():
         # makes sure someone didn't pass an empty var,
         # we don't want to add an empty cap
         if len(k) == 0: