summaryrefslogtreecommitdiffstats
path: root/app-admin/ansible/files/ansible-ds-gi.patch
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /app-admin/ansible/files/ansible-ds-gi.patch
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
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: