Skip to content

Commit

Permalink
Update netbox_import.py
Browse files Browse the repository at this point in the history
fix missing .save and logger
  • Loading branch information
LoH-lu authored Feb 11, 2025
1 parent 2cd9354 commit 777d889
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions netbox_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ def _update_existing_address(
existing_address.vrf = vrf_data
logger.debug(f"Updated all fields for non-DHCP address: {row['address']}")

existing_address.save()
logger.debug(f"Successfully updated address {row['address']}")
logger.debug(f"Merged tags for {row['address']}: {merged_tags}")

except Exception as exc:
logger.error(f"Error updating address {row['address']}: {str(exc)}", exc_info=True)
raise
Expand Down

0 comments on commit 777d889

Please sign in to comment.