]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs-shell: assert python3
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 18 Jun 2019 22:11:58 +0000 (15:11 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 20 Jun 2019 01:22:50 +0000 (18:22 -0700)
There's little reason to support this new tool with python2.

Fixes: http://tracker.ceph.com/issues/40418
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/tools/cephfs/cephfs-shell

index 6c9781485d6e5c1c02fba8565827751e0b959c31..769c16b782288c1d9ff1db61b9d2bb9784c3cae2 100755 (executable)
@@ -15,6 +15,9 @@ import math
 import re
 import shlex
 
+if sys.version_info.major < 3:
+   raise RuntimeError("cephfs-shell is only compatible with python3")
+
 try:
     from cmd2 import with_argparser
 except ImportError: