fix rack comparison while updating location
This commit is contained in:
parent
5f851ec619
commit
9776320972
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ class ServerBase():
|
||||||
update = True
|
update = True
|
||||||
server.site = nb_dc.id
|
server.site = nb_dc.id
|
||||||
|
|
||||||
if rack and server.rack != nb_rack:
|
if rack and server.rack.id != nb_rack.id:
|
||||||
logging.info('Rack location has changed from {} to {}, updating'.format(
|
logging.info('Rack location has changed from {} to {}, updating'.format(
|
||||||
server.rack,
|
server.rack,
|
||||||
nb_rack,
|
nb_rack,
|
||||||
|
|
|
||||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue