From ac5839b9f5d4ff2c4269b9da0314837cdafa5360 Mon Sep 17 00:00:00 2001 From: Joshua Schmid Date: Mon, 10 Aug 2020 13:09:25 +0200 Subject: [PATCH] python-common: ban paths from non-data-devices Signed-off-by: Joshua Schmid --- src/python-common/ceph/deployment/drive_group.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/python-common/ceph/deployment/drive_group.py b/src/python-common/ceph/deployment/drive_group.py index eed8fc2ef2b1..21371d3c24c4 100644 --- a/src/python-common/ceph/deployment/drive_group.py +++ b/src/python-common/ceph/deployment/drive_group.py @@ -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") -- 2.47.3