From 77a043faa6e58ba862b64bef91a5be0af9abc7e3 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 5 May 2021 17:45:04 -0400 Subject: [PATCH] Change apiclient to append if outputting to existing file --- confluent_osdeploy/common/opt/confluent/bin/apiclient | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_osdeploy/common/opt/confluent/bin/apiclient b/confluent_osdeploy/common/opt/confluent/bin/apiclient index 5a526c19..5f60c7f3 100644 --- a/confluent_osdeploy/common/opt/confluent/bin/apiclient +++ b/confluent_osdeploy/common/opt/confluent/bin/apiclient @@ -143,7 +143,7 @@ if __name__ == '__main__': except ValueError: data = None if outbin: - with open(outbin, 'wb') as outf: + with open(outbin, 'ab+') as outf: reader = HTTPSClient(json=json).grab_url( sys.argv[1], data, returnrsp=True) chunk = reader.read(16384)