From 027b6526df43a324a9896c79b0a4043656572013 Mon Sep 17 00:00:00 2001 From: Solvik Date: Thu, 12 Sep 2019 17:43:26 +0200 Subject: [PATCH] Revert "fix rack comparison while updating location (#82)" This reverts commit e9ec69bc3b6e14abc0dcbf8130f7938acd7ac7c8. --- netbox_agent/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox_agent/server.py b/netbox_agent/server.py index 54925e9..9a32042 100644 --- a/netbox_agent/server.py +++ b/netbox_agent/server.py @@ -50,7 +50,7 @@ class ServerBase(): update = True server.site = nb_dc.id - if rack and server.rack.id != nb_rack.id: + if rack and server.rack != nb_rack: logging.info('Rack location has changed from {} to {}, updating'.format( server.rack, nb_rack, -- 2.47.0