From 8c53e654f765412d5471860c43a4f06afb2272ba 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. --- system/alternatives.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/alternatives.py b/system/alternatives.py index 90e2237f86c..e81a3e83065 100644 --- a/system/alternatives.py +++ b/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, )