]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: Add support for python 3 24739/head
authorTiago Melo <tspmelo@gmail.com>
Wed, 24 Oct 2018 16:01:53 +0000 (17:01 +0100)
committerTiago Melo <tmelo@suse.com>
Wed, 24 Oct 2018 16:58:18 +0000 (17:58 +0100)
This will allow the condition to work in both python 2 and 3 environments.

Signed-off-by: Tiago Melo <tmelo@suse.com>
src/ceph.in

index 7a205c3886758ba100ec7c4e35e952c57bade9b3..1ad549afb35ff20ed69ca63e301e8979c9b2b4dc 100755 (executable)
@@ -109,7 +109,7 @@ def get_cmake_variables(names):
             if line.startswith("{}:".format(name)):
                 vars[name] = line.split("=")[1].strip()
                 break
-        if all(vars.itervalues()):
+        if all(vars.values()):
             break
     return vars