mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-19 01:24:42 -05:00
scripts: do not use uninitialized variable
A previous commit removed the 'ret' variable when
switching to subprocess.run, but did not adjust
the exit code.
Fixes: 15c9ca383c
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
@@ -42,7 +42,7 @@ proc = subprocess.run(sys.argv[1:])
|
||||
if proc.returncode != 0 or os.read(access_fd, 10) == b'':
|
||||
os.close(access_fd)
|
||||
os.remove(access_file)
|
||||
sys.exit(ret)
|
||||
sys.exit(proc.returncode)
|
||||
|
||||
known_actions = ["open", "fopen", "access", "stat", "lstat", "connect"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user