mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-29 11:40:22 -07:00
pep8 fixes
This commit is contained in:
parent
27e518a0b1
commit
c0747b7baa
12 changed files with 60 additions and 56 deletions
|
@ -142,10 +142,13 @@ def is_failed(result):
|
|||
return ((result.get('rc', 0) != 0) or (result.get('failed', False) in [ True, 'True', 'true']))
|
||||
|
||||
def check_conditional(conditional):
|
||||
|
||||
def is_set(var):
|
||||
return not var.startswith("$")
|
||||
|
||||
def is_unset(var):
|
||||
return var.startswith("$")
|
||||
|
||||
return eval(conditional.replace("\n", "\\n"))
|
||||
|
||||
def is_executable(path):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue