2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-04-13 04:11:31 +00:00

Handle reseat with '1a/1b' type bay description

This fixes ability to reseat newer chassis when
using the coordinate specification for bay location.
This commit is contained in:
Jarrod Johnson
2025-04-09 16:29:57 -04:00
parent 66265d170a
commit 5e72a8b3c0
2 changed files with 2 additions and 2 deletions

View File

@@ -1060,7 +1060,7 @@ class InputReseatMessage(ConfluentInputMessage):
keyname = 'reseat'
def is_valid_key(self, key):
return key in self.valid_values or isinstance(key, int)
return key in self.valid_values or isinstance(key, int) or len(key) < 4
class InputBMCReset(ConfluentInputMessage):

View File

@@ -27,7 +27,7 @@ def reseat_bays(encmgr, bays, configmanager, rspq):
for rsp in core.handle_path(
'/nodes/{0}/_enclosure/reseat_bay'.format(encmgr),
'update', configmanager,
inputdata={'reseat': int(encbay)}):
inputdata={'reseat': encbay}):
rspq.put(rsp)
except pygexc.UnsupportedFunctionality as uf:
rspq.put(msg.ConfluentNodeError(node, str(uf)))