From: Roland Häder Date: Tue, 25 Jul 2023 02:19:04 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0e815361bd46b0501c637db5c5874135df338c13;p=fba.git Continued: - only set success (status code 200) when software was determined --- 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)