mirror of
https://opendev.org/x/pyghmi
synced 2025-01-27 19:37:44 +00:00
Add specific message for missing media license
XCC error for license was not handled. Change-Id: I10d2c18cbbba8ea63642bf27020c87cd638414b2
This commit is contained in:
parent
2df9280c8e
commit
33beac870d
@ -954,6 +954,9 @@ class XCCClient(IMMClient):
|
||||
if rt['return'] in (657, 659, 656):
|
||||
raise pygexc.InvalidParameterValue(
|
||||
'Given location was unreachable by the XCC')
|
||||
if rt['return'] == 32:
|
||||
raise pygexc.InvalidParameterValue(
|
||||
'XCC does not have required license for operation')
|
||||
raise Exception('Unhandled return: ' + repr(rt))
|
||||
rt = self.wc.grab_json_response('/api/providers/rp_vm_remote_mountall',
|
||||
'{}')
|
||||
|
Loading…
x
Reference in New Issue
Block a user