]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs-shell: don't set use_ipython argument in super.__init__()
authorJeff Layton <jlayton@redhat.com>
Fri, 10 Dec 2021 14:29:33 +0000 (09:29 -0500)
committerJeff Layton <jlayton@redhat.com>
Thu, 16 Dec 2021 11:09:48 +0000 (06:09 -0500)
I get this traceback when trying to use cephfs-shell:

    Traceback (most recent call last):
      File "/usr/bin/cephfs-shell", line 1677, in <module>
        shell = CephFSShell()
      File "/usr/bin/cephfs-shell", line 389, in __init__
        super().__init__(use_ipython=False)
    TypeError: Cmd.__init__() got an unexpected keyword argument 'use_ipython'

The "use_ipython" argument has been renamed to "include_ipy". The
default for both of them is False though, so just drop the argument
altogether.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/tools/cephfs/cephfs-shell

index 4c88cb8cd71ba8cf3dfece92d6a167eeff8721a0..d1916a9061847355be020c7479ebb1bc0b65dc64 100755 (executable)
@@ -386,7 +386,7 @@ def dirwalk(path):
 class CephFSShell(Cmd):
 
     def __init__(self):
-        super().__init__(use_ipython=False)
+        super().__init__()
         self.working_dir = cephfs.getcwd().decode('utf-8')
         self.set_prompt()
         self.interactive = False