diff --git a/confluent_osdeploy/common/initramfs/opt/confluent/bin/apiclient b/confluent_osdeploy/common/initramfs/opt/confluent/bin/apiclient index 836c44ed..f808ff0b 100644 --- a/confluent_osdeploy/common/initramfs/opt/confluent/bin/apiclient +++ b/confluent_osdeploy/common/initramfs/opt/confluent/bin/apiclient @@ -223,6 +223,7 @@ class HTTPSClient(client.HTTPConnection, object): self.errout = None if errout: self.errout = open(errout, 'w') + self.errout.flush() self.stdheaders = {} mgtiface = None if usejson: @@ -340,6 +341,7 @@ class HTTPSClient(client.HTTPConnection, object): sys.stderr.write(errmsg) if self.errout: self.errout.write(errmsg) + self.errout.flush() sys.exit(1) def grab_url(self, url, data=None, returnrsp=False):