From b1032d8c4ce86f443613a68bcdf3c5307b93f98d Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 8 Feb 2022 12:31:04 -0500 Subject: [PATCH] Specify write mode for confluent_uuid file --- confluent_server/bin/osdeploy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/bin/osdeploy b/confluent_server/bin/osdeploy index 1b9b6ba7..d125ef0a 100644 --- a/confluent_server/bin/osdeploy +++ b/confluent_server/bin/osdeploy @@ -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')