From 0e815361bd46b0501c637db5c5874135df338c13 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 25 Jul 2023 04:19:04 +0200 Subject: [PATCH] Continued: - only set success (status code 200) when software was determined --- fba/commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fba/commands.py b/fba/commands.py index f153b56..1efe109 100644 --- a/fba/commands.py +++ b/fba/commands.py @@ -1761,7 +1761,9 @@ def update_nodeinfo(args: argparse.Namespace) -> int: logger.warning("Software type for row[domain]='%s' has changed from '%s' to '%s'!", row["domain"], row["software"], software) instances.set_software(row["domain"], software) - instances.set_success(row["domain"]) + if software is not None: + logger.debug("Setting row[domain]='%s' as successfully determined ...", row["domain"]) + instances.set_success(row["domain"]) except network.exceptions as exception: logger.warning("Exception '%s' during updating nodeinfo for row[domain]='%s'", type(exception), row["domain"]) instances.set_last_error(row["domain"], exception) -- 2.39.5