From 49aa069c941627490e72533baecc9a72fcb3eeab Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sun, 20 Mar 2016 00:41:14 +0100 Subject: [PATCH] Add proper type to path and link Since both of them are path, it should be checked using the proper type. --- lib/ansible/modules/extras/system/alternatives.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/system/alternatives.py b/lib/ansible/modules/extras/system/alternatives.py index 90e2237f86..e81a3e8306 100644 --- a/lib/ansible/modules/extras/system/alternatives.py +++ b/lib/ansible/modules/extras/system/alternatives.py @@ -67,8 +67,8 @@ def main(): module = AnsibleModule( argument_spec = dict( name = dict(required=True), - path = dict(required=True), - link = dict(required=False), + path = dict(required=True, type='path'), + link = dict(required=False, type='path'), ), supports_check_mode=True, )