From de429c48c45add1fcf16b1e019e9598af48bb8f5 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 --- 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 6c9781485d6..769c16b7822 100755 --- 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