From: Patrick Seidensal Date: Mon, 22 Feb 2021 14:52:56 +0000 (+0100) Subject: mgr/prometheus: fix warning of possibly unbound variables X-Git-Tag: v17.1.0~2623^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=0fdbdb45dcec57e6e108edfdbea6e6a661f34a7a;p=ceph.git mgr/prometheus: fix warning of possibly unbound variables Signed-off-by: Patrick Seidensal --- diff --git a/src/pybind/mgr/prometheus/module.py b/src/pybind/mgr/prometheus/module.py index 981a1ab89ba33..6e267f02bca3c 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(