diff --git a/pyghmi/redfish/oem/lenovo/xcc.py b/pyghmi/redfish/oem/lenovo/xcc.py index e9fa9b87..eeaae271 100644 --- a/pyghmi/redfish/oem/lenovo/xcc.py +++ b/pyghmi/redfish/oem/lenovo/xcc.py @@ -438,6 +438,9 @@ class OEMHandler(generic.OEMHandler): self._do_web_request(vmurl, {'Image': url, 'Inserted': True}, 'PATCH') raise pygexc.BypassGenericBehavior() break + else: + raise pygexc.InvalidParameterValue( + 'XCC does not have required license for operation') def upload_media(self, filename, progress=None): xid = random.randint(0, 1000000000)