fix issue with nmcli not parsing vars properly (#22095)

pull/26579/head
Jonathan Davila 7 years ago committed by John R Barker
parent 37ca55bf71
commit e96f8f2a0b

@ -569,7 +569,7 @@ class Nmcli(object):
self.type=module.params['type']
self.ip4=module.params['ip4']
self.gw4=module.params['gw4']
self.dns4=module.params['dns4']
self.dns4=' '.join(module.params['dns4'])
self.ip6=module.params['ip6']
self.gw6=module.params['gw6']
self.dns6=module.params['dns6']
@ -1105,7 +1105,7 @@ def main():
type=dict(required=False, default=None, choices=['ethernet', 'team', 'team-slave', 'bond', 'bond-slave', 'bridge', 'vlan'], type='str'),
ip4=dict(required=False, default=None, type='str'),
gw4=dict(required=False, default=None, type='str'),
dns4=dict(required=False, default=None, type='str'),
dns4=dict(required=False, default=None, type='list'),
ip6=dict(required=False, default=None, type='str'),
gw6=dict(required=False, default=None, type='str'),
dns6=dict(required=False, default=None, type='str'),

Loading…
Cancel
Save