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:
parent
f321e06e6e
commit
aa7701ea3c
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user