From 7add8da7b00a646e78948c647d3e19c2c6dcca88 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 6 Jun 2018 08:46:51 -0500 Subject: [PATCH] mgr/DaemonState: skip blank device_ids Signed-off-by: Sage Weil --- src/mgr/DaemonState.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mgr/DaemonState.h b/src/mgr/DaemonState.h index c746d57ca2add..2ceedb926bb2d 100644 --- a/src/mgr/DaemonState.h +++ b/src/mgr/DaemonState.h @@ -166,7 +166,9 @@ class DaemonState map devs; get_str_map(p->second, &devs, ",; "); for (auto& i : devs) { - devices[i.second] = i.first; + if (i.second.size()) { // skip blank ids + devices[i.second] = i.first; + } } } } -- 2.39.5