]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
python-common: ban paths from non-data-devices 36543/head
authorJoshua Schmid <jschmid@suse.de>
Mon, 10 Aug 2020 11:09:25 +0000 (13:09 +0200)
committerJoshua Schmid <jschmid@suse.de>
Mon, 10 Aug 2020 11:09:25 +0000 (13:09 +0200)
Signed-off-by: Joshua Schmid <jschmid@suse.de>
src/python-common/ceph/deployment/drive_group.py

index eed8fc2ef2b1e4317f70e0cbc44b63266806fdfe..21371d3c24c4f7ad540cf98740ff8ce9641a6784 100644 (file)
@@ -294,6 +294,8 @@ class DriveGroupSpec(ServiceSpec):
         for s in filter(None, specs):
             s.validate()
         for s in filter(None, [self.db_devices, self.wal_devices, self.journal_devices]):
+            if s.paths:
+                raise DriveGroupValidationError("`paths` is only allowed for data_devices")
             if s.all:
                 raise DriveGroupValidationError("`all` is only allowed for data_devices")