Commit 4792021f by Michael DeHaan

Fix syntax error in user patch

parent e5d5b072
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment