summaryrefslogtreecommitdiffstats
path: root/app-admin/ansible/files/ansible-ds-gi.patch
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/ansible/files/ansible-ds-gi.patch')
-rw-r--r--app-admin/ansible/files/ansible-ds-gi.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/app-admin/ansible/files/ansible-ds-gi.patch b/app-admin/ansible/files/ansible-ds-gi.patch
new file mode 100644
index 0000000..2004e1a
--- /dev/null
+++ b/app-admin/ansible/files/ansible-ds-gi.patch
@@ -0,0 +1,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: