This website works better with JavaScript.
Home
Help
Sign In
LILiK
/
lilik_playbook
Watch
5
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
fix correct instance of result
update_ca_key
Edoardo Putti
8 years ago
parent
cd5b1018bb
commit
1f7705a321
1 changed files
with
8 additions
and
9 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
.
dump
s
(
result
)
)
return
0
def
main
(
)
:
Write
Preview
Loading…
Cancel
Save