From 1b0744973e962d3db6b566e31982485832a6d732 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Tue, 18 Jun 2019 15:11:58 -0700 Subject: [PATCH] cephfs-shell: assert python3 There's little reason to support this new tool with python2. Fixes: http://tracker.ceph.com/issues/40418 Signed-off-by: Patrick Donnelly (cherry picked from commit de429c48c45add1fcf16b1e019e9598af48bb8f5) --- src/tools/cephfs/cephfs-shell | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tools/cephfs/cephfs-shell b/src/tools/cephfs/cephfs-shell index 32a5b7367750d..03999a004a2b5 100644 --- a/src/tools/cephfs/cephfs-shell +++ b/src/tools/cephfs/cephfs-shell @@ -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: -- 2.39.5