]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/orch: remove label: prefix when parsing placementspec
authorSage Weil <sage@redhat.com>
Fri, 21 Feb 2020 16:57:16 +0000 (10:57 -0600)
committerSage Weil <sage@redhat.com>
Mon, 24 Feb 2020 13:39:46 +0000 (07:39 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/orchestrator/_interface.py

index 59fa605f85c336d0bb78c3ee90f74bd1cee678e4..30347796973b17f5d0eb8eab383c1c1a90dfa286 100644 (file)
@@ -1246,7 +1246,7 @@ class PlacementSpec(object):
             strings.remove('all:true')
 
         hosts = [x for x in strings if x != '*' and 'label:' not in x]
-        labels = [x for x in strings if 'label:' in x]
+        labels = [x[6:] for x in strings if 'label:' in x]
         if len(labels) > 1:
             raise OrchestratorValidationError('more than one label provided: {}'.format(labels))