mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Use dbus only if it is present (#19060)
This commit is contained in:
parent
3b509b1095
commit
28a12e8b27
1 changed files with 2 additions and 1 deletions
|
@ -524,6 +524,7 @@ class Nmcli(object):
|
|||
|
||||
platform='Generic'
|
||||
distribution=None
|
||||
if HAVE_DBUS:
|
||||
bus=dbus.SystemBus()
|
||||
# The following is going to be used in dbus code
|
||||
DEVTYPES={1: "Ethernet",
|
||||
|
|
Loading…
Reference in a new issue