From: Jairo Llopis Date: Thu, 4 Oct 2018 05:48:03 +0000 (+0200) Subject: Fix problem with ceph_key in python3 X-Git-Tag: v3.1.11~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a5aca6ebbc341feb34b9ec0d73e16aeeedae63ac;p=ceph-ansible.git Fix problem with ceph_key in python3 Pretty basic problem of iteritems removal. Signed-off-by: Jairo Llopis (cherry picked from commit fc20973c2b9a89a15f8940cd100c34df4caca030) --- diff --git a/library/ceph_key.py b/library/ceph_key.py index c6803302f..e6d66bac1 100644 --- a/library/ceph_key.py +++ b/library/ceph_key.py @@ -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: