Revert "fix rack comparison while updating location (#82)"

This reverts commit e9ec69bc3b.
This commit is contained in:
Solvik 2019-09-12 17:43:26 +02:00 committed by GitHub
parent e9ec69bc3b
commit 027b6526df

View file

@ -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,