From 0fdbdb45dcec57e6e108edfdbea6e6a661f34a7a Mon Sep 17 00:00:00 2001 From: Patrick Seidensal Date: Mon, 22 Feb 2021 15:52:56 +0100 Subject: [PATCH] mgr/prometheus: fix warning of possibly unbound variables Signed-off-by: Patrick Seidensal --- src/pybind/mgr/prometheus/module.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pybind/mgr/prometheus/module.py b/src/pybind/mgr/prometheus/module.py index 981a1ab89ba3..6e267f02bca3 100644 --- a/src/pybind/mgr/prometheus/module.py +++ b/src/pybind/mgr/prometheus/module.py @@ -777,6 +777,8 @@ class Module(MgrModule): )) osd_dev_node = None + osd_wal_dev_node = '' + osd_db_dev_node = '' if obj_store == "filestore": # collect filestore backend device osd_dev_node = osd_metadata.get( -- 2.47.3