]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs-shell: Fix flake8 use != to compare str literals warning
authorVarsha Rao <varao@redhat.com>
Thu, 6 Jun 2019 15:21:31 +0000 (20:51 +0530)
committerVarsha Rao <varao@redhat.com>
Thu, 6 Jun 2019 15:55:53 +0000 (21:25 +0530)
Fixes: https://tracker.ceph.com/issues/40191
Signed-off-by: Varsha Rao <varao@redhat.com>
src/tools/cephfs/cephfs-shell

index 1c3f187418c3069e5568d75b6720f09b6690e63c..46076112a5f599836ba0dbbcf6694669f3515ac2 100755 (executable)
@@ -413,7 +413,7 @@ class CephFSShell(Cmd):
 
     class ModeAction(argparse.Action):
         def __init__(self, option_strings, dest, nargs=None, **kwargs):
-            if nargs is not None and nargs is not '?':
+            if nargs is not None and nargs != '?':
                 raise ValueError("more than one modes not allowed")
             super().__init__(option_strings, dest, **kwargs)