mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 09:43:15 +00:00
Use dbus only if it is present (#19060)
This commit is contained in:
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",
|
||||
|
||||
Reference in New Issue
Block a user