mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix syntax error in user patch
This commit is contained in:
parent
e5d5b072db
commit
4792021f47
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue