Use dbus only if it is present (#19060)

pull/19129/head
Fabio Alessandro Locati 9 years ago committed by John R Barker
parent 3b509b1095
commit 28a12e8b27

@ -524,7 +524,8 @@ class Nmcli(object):
platform='Generic'
distribution=None
bus=dbus.SystemBus()
if HAVE_DBUS:
bus=dbus.SystemBus()
# The following is going to be used in dbus code
DEVTYPES={1: "Ethernet",
2: "Wi-Fi",

Loading…
Cancel
Save