Commit 23dc3285 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Merge branch 'cherry-pick-f3879289' into 'release-19.4'

release-20.1:Backport!3471

See merge request noc/noc!3472
parents e30e8be3 065b135f
......@@ -79,7 +79,7 @@ class RackPlugin(InvPlugin):
def api_set_rack_load(self, request, id, cid, position_front, position_rear, shift):
o = self.app.get_object_or_404(Object, id=id)
co = self.app.get_object_or_404(Object, id=cid)
if co.container != o.id:
if co.container.id != o.id:
return self.app.response_not_found()
if position_front:
co.set_data("rackmount", "position", position_front)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment