]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs-shell: Remove undefined exception instance
authorVarsha Rao <varao@redhat.com>
Tue, 14 Apr 2020 08:51:24 +0000 (14:21 +0530)
committerNathan Cutler <ncutler@suse.com>
Mon, 11 May 2020 16:08:12 +0000 (18:08 +0200)
This patch fixes the following flake8 error:
F821 undefined name 'e'

Fixes: https://tracker.ceph.com/issues/44645
Signed-off-by: Varsha Rao <varao@redhat.com>
(cherry picked from commit 8234765b43bd100266fafcd96fcd7f2cc26ed39e)

src/tools/cephfs/cephfs-shell

index f37f14054783b4de938fcfb95fc77eba0a416c7a..007bd4e5d9aeb08820ed9614ae596eafdfeb032d 100755 (executable)
@@ -1357,7 +1357,7 @@ class CephFSShell(Cmd):
         else:
             self.perror("snapshot can only be created or deleted; check - "
                         "help snap")
-            self.exit_code = e.get_error_code()
+            self.exit_code = 1
 
     def do_help(self, line):
         """