Revert "fix rack comparison while updating location" #83

Merged
Solvik merged 1 commit from revert-82-update_location into master 2019-09-12 17:43:40 +02:00

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,