summaryrefslogtreecommitdiffstats
path: root/app-admin/ansible/files/ansible-ds-dns4.patch
diff options
context:
space:
mode:
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']