throw error (that's caught) if delegated admin can't list parent OUs

This commit is contained in:
Jay Lee
2017-09-13 16:08:33 -04:00
parent 8cca8f642c
commit c6b1a163af

View File

@@ -10265,7 +10265,7 @@ def doPrintOrgs():
for missing_parent in missing_parents:
try:
result = callGAPI(cd.orgunits(), u'get',
customerId=GC_Values[GC_CUSTOMER_ID], orgUnitPath=missing_parent, fields=get_fields)
customerId=GC_Values[GC_CUSTOMER_ID], orgUnitPath=missing_parent, fields=get_fields, throw_reasons=[u'required'])
orgunits.append(result)
except:
pass