mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
Port arg specs from type='str' to type='path'
This commit is contained in:
parent
dc69af50dc
commit
75eed6a51a
12 changed files with 27 additions and 40 deletions
|
@ -337,7 +337,7 @@ def write_changes(module, lines, dest):
|
|||
def main():
|
||||
module = AnsibleModule(
|
||||
argument_spec=dict(
|
||||
dest=dict(default='/etc/network/interfaces', required=False),
|
||||
dest=dict(default='/etc/network/interfaces', required=False, type='path'),
|
||||
iface=dict(required=False),
|
||||
option=dict(required=False),
|
||||
value=dict(required=False),
|
||||
|
@ -348,8 +348,7 @@ def main():
|
|||
supports_check_mode=True
|
||||
)
|
||||
|
||||
dest = os.path.expanduser(module.params['dest'])
|
||||
|
||||
dest = module.params['dest']
|
||||
iface = module.params['iface']
|
||||
option = module.params['option']
|
||||
value = module.params['value']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue