2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-14 11:48:33 +00:00

Merge "Explicitly check RDOC list after add"

This commit is contained in:
Zuul 2018-02-26 17:02:24 +00:00 committed by Gerrit Code Review
commit 8c1f1c8387

View File

@ -1046,6 +1046,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: