From: Patrick Donnelly Date: Wed, 30 Aug 2017 22:28:11 +0000 (-0700) Subject: ceph.in: validate service glob X-Git-Tag: v13.0.1~985^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F17384%2Fhead;p=ceph.git ceph.in: validate service glob Fixes: http://tracker.ceph.com/issues/21191 Signed-off-by: Patrick Donnelly --- diff --git a/src/ceph.in b/src/ceph.in index bb2516c788f9..23faff12c790 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -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 '