ansible/test/units/plugins/lookup
Zhikang Zhang 0971a342d8
Solve race condition in password lookup (#42529)
NOTE:
1. use os.open() with os.O_CREAT|os.O_EXCL to check existence
and create a lock file if not exists, it's an atomic operation
2. the fastest process will create the lock file and others will
wait until the lock file is removed
3. after the writer finished writing to the password file, all the reading
operations use built-in open so processes can read the file parallel
2018-08-15 15:10:52 -04:00
..
__init__.py
test_aws_ssm.py
test_conjur_variable.py
test_ini.py
test_lastpass.py
test_onepassword.py
test_password.py Solve race condition in password lookup (#42529) 2018-08-15 15:10:52 -04:00