Fix exception when dns is present

ifcfg_create expects list of dns addresses to be non plain values, while
dns validator returns only a string.

https://github.com/linux-system-roles/network/pull/20
This commit is contained in:
Roman Bolshakov 2017-11-13 20:42:16 +03:00 committed by Thomas Haller
parent f28b24ac05
commit 9b8a46e3e3

View file

@ -634,7 +634,7 @@ class ArgValidator_DictIP(ArgValidatorDict):
default_value = list,
),
ArgValidatorList('dns',
nested = ArgValidatorIP('dns[?]'),
nested = ArgValidatorIP('dns[?]', plain_address=False),
default_value = list,
),
ArgValidatorList('dns_search',