]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: use correct module for cmd flags 26454/head
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 15 Feb 2019 18:14:22 +0000 (10:14 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 15 Feb 2019 18:17:41 +0000 (10:17 -0800)
argparse != ceph_argparse

Introduced-by: 19fbdb3ffde5bcb73792b1d822fe3f8d0407d490
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/ceph.in

index 85e66289dd854688434ace7d4ccb832432deb511..eb02c60511ae6e1a6ffe0c45a6a7d4426b21c1d8 100755 (executable)
@@ -138,6 +138,7 @@ import signal
 import string
 import subprocess
 
+import ceph_argparse
 from ceph_argparse import \
     concise_sig, descsort_key, parse_json_funcsigs, \
     validate_command, find_cmd_target, \
@@ -471,7 +472,7 @@ def format_help(cmddict, partial=None):
         if not cmd['help']:
             continue
         flags = cmd.get('flags', 0)
-        if flags & (argparse.FLAG_OBSOLETE | argparse.FLAG_DEPRECATED | argparse.FLAG_HIDDEN):
+        if flags & (ceph_argparse.FLAG_OBSOLETE | ceph_argparse.FLAG_DEPRECATED | ceph_argparse.FLAG_HIDDEN):
             continue
         concise = concise_sig(cmd['sig'])
         if partial and not concise.startswith(partial):