mirror of
https://github.com/Rudd-O/ansible-qubes.git
synced 2025-03-01 14:22:33 +01:00
Another fix.
This commit is contained in:
parent
0758b872f1
commit
f2cedf7e19
@ -171,7 +171,6 @@ def fetch(in_path, bufsize):
|
|||||||
except (IOError, OSError) as e:
|
except (IOError, OSError) as e:
|
||||||
sys.stdout.write(b'N\n')
|
sys.stdout.write(b'N\n')
|
||||||
encode_exception(e, sys.stdout)
|
encode_exception(e, sys.stdout)
|
||||||
f.close()
|
|
||||||
return
|
return
|
||||||
sys.stdout.write('{}\n'.format(len(data)).encode('ascii'))
|
sys.stdout.write('{}\n'.format(len(data)).encode('ascii'))
|
||||||
if len(data) == 0:
|
if len(data) == 0:
|
||||||
@ -179,7 +178,8 @@ def fetch(in_path, bufsize):
|
|||||||
break
|
break
|
||||||
sys.stdout.write(data)
|
sys.stdout.write(data)
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
f.close()
|
finally:
|
||||||
|
f.close()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user