From f569b512c9c9e92e718e3250b5e24e2e510c8e00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Luiz=20dos=20Santos?= Date: Sat, 28 Feb 2015 00:07:47 -0300 Subject: [PATCH] Variable name typo --- lib/ansible/modules/extras/files/patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/files/patch.py b/lib/ansible/modules/extras/files/patch.py index 46fefe86dd2..cd4b3130079 100644 --- a/lib/ansible/modules/extras/files/patch.py +++ b/lib/ansible/modules/extras/files/patch.py @@ -132,7 +132,7 @@ def main(): module.fail_json(msg="src %s doesn't exist or not readable" % (p.src)) if p.dest and not os.access(p.dest, W_OK): - module.fail_json(msg="dest %s doesn't exist or not writable" % (d.dest)) + module.fail_json(msg="dest %s doesn't exist or not writable" % (p.dest)) if p.basedir and not path.exists(p.basedir): module.fail_json(msg="basedir %s doesn't exist" % (p.basedir))