aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/report/plugins/networkmanager.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/report/plugins/networkmanager.py b/sos/report/plugins/networkmanager.py
index e29f1dcb..976cbe1f 100644
--- a/sos/report/plugins/networkmanager.py
+++ b/sos/report/plugins/networkmanager.py
@@ -43,7 +43,8 @@ class NetworkManager(Plugin, RedHatPlugin, UbuntuPlugin):
"general" # >= 0.9.9
]
status = self.exec_cmd(status_template % obj_table[version])
- return status['output'].lower().startswith("running")
+ return (status['status'] == 0 and
+ status['output'].lower().startswith("running"))
# NetworkManager >= 0.9.9 (Use short name of objects for nmcli)
if test_nm_status(version=1):