diff options
Diffstat (limited to 'examples/python/gi/device-state-ip4config.py')
| -rwxr-xr-x | examples/python/gi/device-state-ip4config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/python/gi/device-state-ip4config.py b/examples/python/gi/device-state-ip4config.py index be19b996..1a6f7dec 100755 --- a/examples/python/gi/device-state-ip4config.py +++ b/examples/python/gi/device-state-ip4config.py @@ -21,7 +21,7 @@ # import sys -from gi.repository import GLib, NetworkManager, NMClient +from gi.repository import GLib, NM # # This example shows how to get NMIP4Config from NMDevice after it is activated. @@ -51,7 +51,7 @@ if __name__ == "__main__": sys.exit('Usage: %s <interface>' % sys.argv[0]) dev_iface = sys.argv[1] - c = NMClient.Client.new() + c = NM.Client.new(None) dev = c.get_device_by_iface(dev_iface) if dev is None: sys.exit('Device \'%s\' not found' % dev_iface) |