]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph.in: validate service glob
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 30 Aug 2017 22:28:11 +0000 (15:28 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 30 Aug 2017 22:44:36 +0000 (15:44 -0700)
Fixes: http://tracker.ceph.com/issues/21191
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/ceph.in

index bb2516c788f9953cccba5d71498f3c288dce4432..23faff12c790b1447018cd3688233a21cfdb0bcd 100755 (executable)
@@ -225,7 +225,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 '