fix rack selection

This commit is contained in:
2023-07-04 08:33:36 +02:00
parent 14fcf5851e
commit 44b29bd086

View File

@ -59,7 +59,8 @@ proc get_rack {{oldrack ""}} {
}
}
}
if {$mysubnet ne "office" && [llength $inmynet]} {
set hostname [lindex [split [info hostname] .] 0]
if {$mysubnet ne "office" && [llength $inmynet] && $hostname eq [result instrument]} {
# if any rack is in the instrument subnet, racks in office net are not shown
return $inmynet
}