From b081c17b5582bb911e3a7f99d6b2771f58273d34 Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Mon, 27 Jul 2026 06:52:55 +0200 Subject: [PATCH] Let the import drain loop accumulate a line The loop that drains the importer's remaining output reads a byte at a time but clears currline on every iteration, one level out from where the earlier loop clears it. currline is therefore never longer than a single byte, so the percentage and ERROR: branches can never match and the tail of an import is silently discarded. Clear it only once a line has been consumed, as the earlier loop does. --- confluent_server/confluent/osimage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/osimage.py b/confluent_server/confluent/osimage.py index fda01d82..8f743537 100644 --- a/confluent_server/confluent/osimage.py +++ b/confluent_server/confluent/osimage.py @@ -1301,7 +1301,7 @@ class MediaImporter(object): self.error = self.error.decode('utf8') self.phase = 'error' return - currline = b'' + currline = b'' a = await wkr.stdout.read(1) if self.oscategory: defprofile = '/opt/confluent/lib/osdeploy/{0}'.format(