mirror of
https://opendev.org/x/pyghmi
synced 2026-01-11 18:52:33 +00:00
Explicitly check RDOC list after add
On a broderline case, a file can be accepted for upload, but denied on add, but not denied at add time, but after. Retrieve the list after the fact to pick up on this situation. Change-Id: I90656d70d7f0006a08c04d6f0686d65afaa65c2b
This commit is contained in:
@@ -1044,6 +1044,10 @@ class XCCClient(IMMClient):
|
||||
addfile)
|
||||
if rsp['return'] != 0:
|
||||
raise Exception('Unrecognized return: ' + repr(rsp))
|
||||
rsp = self.wc.grab_json_response('/api/providers/rp_rdoc_getfiles')
|
||||
if 'items' not in rsp or len(rsp['items']) == 0:
|
||||
raise Exception(
|
||||
'Image upload was not accepted, it may be too large')
|
||||
rsp = self.wc.grab_json_response('/api/providers/rp_rdoc_mountall',
|
||||
{})
|
||||
if rsp['return'] != 0:
|
||||
|
||||
Reference in New Issue
Block a user