Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
c0f138db
Commit
c0f138db
authored
May 15, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2927 from bcoca/solaris_lock
changed lockfile to be opened in write mode
parents
d29d142a
8dd72d28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
+1
-4
lib/ansible/callbacks.py
+1
-4
No files found.
lib/ansible/callbacks.py
View file @
c0f138db
...
...
@@ -68,12 +68,9 @@ def log_lockfile():
tempdir
=
tempfile
.
gettempdir
()
uid
=
os
.
getuid
()
path
=
os
.
path
.
join
(
tempdir
,
".ansible-lock.
%
s"
%
uid
)
if
not
os
.
path
.
exists
(
path
):
fh
=
open
(
path
,
'w'
)
fh
.
close
()
return
path
LOG_LOCK
=
open
(
log_lockfile
(),
'
r
'
)
LOG_LOCK
=
open
(
log_lockfile
(),
'
w
'
)
def
log_flock
():
fcntl
.
flock
(
LOG_LOCK
,
fcntl
.
LOCK_EX
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment