Skip to content

Commit

Permalink
More module_utils/basic.py unit tests for v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jimi-c committed May 28, 2015
1 parent 339a02c commit e59d4f3
Show file tree
Hide file tree
Showing 2 changed files with 447 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/ansible/module_utils/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ def set_context_if_different(self, path, context, changed):
if len(context) > i:
if context[i] is not None and context[i] != cur_context[i]:
new_context[i] = context[i]
if context[i] is None:
elif context[i] is None:
new_context[i] = cur_context[i]

if cur_context != new_context:
Expand Down
Loading

0 comments on commit e59d4f3

Please sign in to comment.