mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-15 21:31:02 +00:00
Use dbus.exceptions of non-existent dbus.Exceptions (#43495)
This commit is contained in:
committed by
Abhijeet Kasurde
parent
09eac6bab9
commit
b3c054c55e
@@ -627,7 +627,7 @@ class Nmcli(object):
|
||||
try:
|
||||
proxy = bus.get_object(service_name, "/org/freedesktop/NetworkManager/Settings")
|
||||
settings = dbus.Interface(proxy, "org.freedesktop.NetworkManager.Settings")
|
||||
except dbus.Exceptions.DBusException as e:
|
||||
except dbus.exceptions.DBusException as e:
|
||||
self.module.fail_json(msg="Unable to read Network Manager settings from DBus system bus: %s" % to_native(e),
|
||||
details="Please check if NetworkManager is installed and"
|
||||
" service network-manager is started.")
|
||||
|
||||
Reference in New Issue
Block a user