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:
@@ -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):
|
||||
|
||||
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user