mirror of
https://github.com/xcat2/confluent.git
synced 2025-08-20 10:10:23 +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:
@@ -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
|
||||
|
Reference in New Issue
Block a user