Browse Source

fix correct instance of result

update_ca_key
Edoardo Putti 8 years ago
parent
commit
1f7705a321
1 changed files with 8 additions and 9 deletions
  1. +8
    -9
      library/container_file_exists.py

+ 8
- 9
library/container_file_exists.py View File

@ -25,18 +25,17 @@ options:
def check_file_in_container(path):
import os
import json
result = {
changed: True,
exists: False,
failure: False,
path: path,
}
result = dict(
exists = False,
failed = False,
path = path,
)
if os.path.exists(path):
result.exists = True
result['exists'] = True
else:
result.failure = True
result['exists'] = True
print(json.dump(result))
print(json.dumps(result))
return 0
def main():


Loading…
Cancel
Save