debian-forge-composer/tools/ansible-blocking-io.py
2023-03-02 16:03:11 +01:00

16 lines
468 B
Python
Executable file

#!/usr/bin/python3
# This python script is to fix ansible error in CI test. It's not a bug of ansible, but a side-effect of a different change
# Details can be found in https://github.com/osbuild/osbuild-composer/issues/3309
# Will remove it later if we do not see ansible error in CI
import os
import sys
for handle in (sys.stdin, sys.stdout, sys.stderr):
try:
fd = handle.fileno()
except Exception:
continue
os.set_blocking(fd, True)