Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
135
noc
Commits
f3879289
Commit
f3879289
authored
Apr 13, 2020
by
Dmitry Volodin
Browse files
Merge branch 'noc-1286' into 'master'
noc/noc#1286
Fix object set rack number. See merge request
noc/noc!3471
parents
8f591ce0
4d3af555
Changes
1
Hide whitespace changes
Inline
Side-by-side
services/web/apps/inv/inv/plugins/rack.py
View file @
f3879289
...
...
@@ -76,7 +76,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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment