]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: validate service glob 17729/head
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 30 Aug 2017 22:28:11 +0000 (15:28 -0700)
committerNathan Cutler <ncutler@suse.com>
Thu, 14 Sep 2017 11:01:05 +0000 (13:01 +0200)
Fixes: http://tracker.ceph.com/issues/21191
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 59bee1e7274934cebe0dcefd9fcedb6886a5e2d0)

src/ceph.in

index cb1bd86941950a99012db3e913cde9b90de4f2ca..c14c477e801a734f3cf34238ae1c8a75d5af681c 100755 (executable)
@@ -228,7 +228,7 @@ def validate_target(target):
                   file=sys.stderr)
             return False
 
-        if service_id in exist_ids:
+        if service_id in exist_ids or len(exist_ids) > 0 and service_id == '*':
             return True
         else:
             print('WARN: the service id you provided does not exist. service id should '