From 4792021f478c419b16aa58e3f17f01e5c5e76ac2 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Mon, 2 Apr 2012 20:08:40 -0400 Subject: [PATCH] Fix syntax error in user patch --- library/file | 4 ++-- test/TestPlayBook.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/library/file b/library/file index 6e44ebe2044..5e47583a17d 100755 --- a/library/file +++ b/library/file @@ -97,10 +97,10 @@ secontext = params.get('secontext', None) if state not in [ 'file', 'directory', 'link', 'absent']: fail_json(msg='invalid state: %s' % state) -if state = 'link' and (src is None or dest is None): +if state == 'link' and (src is None or dest is None): fail_json(msg='src and dest are required for "link" state') elif path is None: - fail_json(msg='path is required for "%s" state' % state) + fail_json(msg='path is required') changed = False diff --git a/test/TestPlayBook.py b/test/TestPlayBook.py index c0a3f28af01..b32c76780de 100644 --- a/test/TestPlayBook.py +++ b/test/TestPlayBook.py @@ -43,7 +43,7 @@ class TestCallbacks(object): EVENTS.append([ 'import', [ host, filename ]]) def on_error(self, host, msg): - EVENTS.append([ 'stderr', [ host, msg ]) + EVENTS.append([ 'stderr', [ host, msg ]]) def on_not_import_for_host(self, host, missing_filename): pass