mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
@@ -268,7 +268,7 @@ def _get_lock(b_path):
|
||||
"""Get the lock for writing password file."""
|
||||
first_process = False
|
||||
b_pathdir = os.path.dirname(b_path)
|
||||
lockfile_name = to_bytes("%s.ansible_lockfile" % hashlib.md5(b_path).hexdigest())
|
||||
lockfile_name = to_bytes("%s.ansible_lockfile" % hashlib.sha1(b_path).hexdigest())
|
||||
lockfile = os.path.join(b_pathdir, lockfile_name)
|
||||
if not os.path.exists(lockfile) and b_path != to_bytes('/dev/null'):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user