summaryrefslogtreecommitdiffstats
path: root/app-admin/ansible/files/ansible-ds-dns4.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-dns4.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-dns4.patch')
-rw-r--r--app-admin/ansible/files/ansible-ds-dns4.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/app-admin/ansible/files/ansible-ds-dns4.patch b/app-admin/ansible/files/ansible-ds-dns4.patch
new file mode 100644
index 0000000..f18e7d8
--- /dev/null
+++ b/app-admin/ansible/files/ansible-ds-dns4.patch
@@ -0,0 +1,12 @@
+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:54:08.121892385 +0100
+@@ -556,7 +560,7 @@
+ self.type=module.params['type']
+ self.ip4=module.params['ip4']
+ self.gw4=module.params['gw4']
+- self.dns4=' '.join(module.params['dns4'])
++ self.dns4=' '.join(module.params['dns4']) if module.params.get('dns4') else None
+ self.ip6=module.params['ip6']
+ self.gw6=module.params['gw6']
+ self.dns6=module.params['dns6']