]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: main: py3 support fixes with print
authorAlfredo Deza <adeza@redhat.com>
Mon, 17 Jul 2017 19:19:20 +0000 (15:19 -0400)
committerAlfredo Deza <adeza@redhat.com>
Fri, 4 Aug 2017 14:25:58 +0000 (10:25 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
src/ceph-volume/ceph_volume/main.py

index ca819bbe2364944c1855de977a530ee42cfced57..4183542385ba685a034fd1011c5b797790e164d5 100644 (file)
@@ -1,3 +1,4 @@
+from __future__ import print_function
 import argparse
 import os
 import pkg_resources
@@ -108,7 +109,7 @@ Ceph Conf: {ceph_path}
         # no flags where passed in, return the help menu instead of waiting for
         # argparse which will end up complaning that there are no args
         if len(argv) <= 1:
-            print self.help(warning=True)
+            print(self.help(warning=True))
             return
         parser = argparse.ArgumentParser(
             prog='ceph-volume',