summaryrefslogtreecommitdiffstats
path: root/app-admin/ansible/files/ansible-ds-gi.patch
blob: 2004e1a709308b731878060f3cfd5d0a5b30a360 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff -dPNur ansible-2.4.3.0/lib/ansible/modules/net_tools/nmcli.py ansible-2.4.3.0-new/lib/ansible/modules/net_tools/nmcli.py
--- ansible-2.4.3.0/lib/ansible/modules/net_tools/nmcli.py	2018-02-01 00:09:48.000000000 +0100
+++ ansible-2.4.3.0-new/lib/ansible/modules/net_tools/nmcli.py	2018-03-12 16:41:51.287447030 +0100
@@ -490,6 +490,10 @@
 
 HAVE_NM_CLIENT=False
 try:
+    import gi
+    gi.require_version('NMClient', '1.0')
+    gi.require_version('NetworkManager', '1.0') 
+
     from gi.repository import NetworkManager, NMClient
     HAVE_NM_CLIENT=True
 except ImportError: