2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 02:52:07 +00:00

Specify write mode for confluent_uuid file

This commit is contained in:
Jarrod Johnson 2022-02-08 12:31:04 -05:00
parent 00bedf6946
commit b1032d8c4c

View File

@ -320,7 +320,7 @@ def initialize(cmdset):
for rsp in c.read('/uuid'):
uuid = rsp.get('uuid', {}).get('value', None)
if uuid:
with open('confluent_uuid') as uuidout:
with open('confluent_uuid', 'w') as uuidout:
uuidout.write(uuid)
uuidout.write('\n')
totar.append('confluent_uuid')