2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-16 02:29:56 +00:00

More usefully indicate unfound interfaces

Rather than no data, provide
not found error when requesting a currently unsupported name.
This commit is contained in:
Jarrod Johnson 2021-05-11 08:02:19 -04:00
parent f321e06e6e
commit aa7701ea3c
2 changed files with 8 additions and 0 deletions

View File

@ -749,6 +749,10 @@ class IpmiHandler(object):
self.node, 'Invalid prefix length given'))
else:
raise
elif len(self.element) == 4 and self.element[-1] != 'management':
self.output.put(
msg.ConfluentTargetNotFound(self.node,
'Interface not found'))
def handle_users(self):
# Create user

View File

@ -608,6 +608,10 @@ class IpmiHandler(object):
self.node, 'Invalid prefix length given'))
else:
raise
elif len(self.element) == 4 and self.element[-1] != 'management':
self.output.put(
msg.ConfluentTargetNotFound(self.node,
'Interface not found'))
def handle_users(self):
# Create user