Skip to content

Commit e8dc124

Browse files
authored
Add progress logging to sync netbox --check for better user feedback (#1838)
Display which Netbox instance is currently being tested during connectivity checks. This provides real-time feedback to users and makes the check process more transparent. AI-assisted: Claude Code Signed-off-by: Christian Berendt <berendt@osism.tech>
1 parent c3facd9 commit e8dc124

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

osism/commands/netbox.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ def _build_netbox_table(self, check_connectivity=False, timeout=20):
102102
if settings.NETBOX_URL:
103103
row = ["primary", settings.NETBOX_URL, "N/A"]
104104
if check_connectivity:
105+
logger.info(
106+
f"Checking connectivity to primary Netbox: {settings.NETBOX_URL}"
107+
)
105108
status = self._check_netbox_connectivity(
106109
utils.nb,
107110
settings.NETBOX_URL,
@@ -120,6 +123,7 @@ def _build_netbox_table(self, check_connectivity=False, timeout=20):
120123
row = [name, url, site]
121124

122125
if check_connectivity:
126+
logger.info(f"Checking connectivity to {name} ({url})")
123127
status = self._check_netbox_instance(nb, timeout)
124128
row.append(status)
125129

0 commit comments

Comments
 (0)