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: v16.2.0~106^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=8bcaa00da922597eba5fe271a19b3899c91eec9a;p=ceph.git mgr/prometheus: fix warning of possibly unbound variables Signed-off-by: Patrick Seidensal (cherry picked from commit 0fdbdb45dcec57e6e108edfdbea6e6a661f34a7a) --- diff --git a/src/pybind/mgr/prometheus/module.py b/src/pybind/mgr/prometheus/module.py index 53e0a98149f44..ebb353fe2a08c 100644 --- a/src/pybind/mgr/prometheus/module.py +++ b/src/pybind/mgr/prometheus/module.py @@ -778,6 +778,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(