mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-05 13:21:35 +00:00
Fix gam report user/customer not being recognized (#1103)
This commit is contained in:
@@ -1272,9 +1272,9 @@ def showReport():
|
|||||||
rep = buildGAPIObject('reports')
|
rep = buildGAPIObject('reports')
|
||||||
report = sys.argv[2].lower()
|
report = sys.argv[2].lower()
|
||||||
report = REPORT_CHOICE_MAP.get(report.replace('_', ''), report)
|
report = REPORT_CHOICE_MAP.get(report.replace('_', ''), report)
|
||||||
valid_apps = _getEnumValuesMinusUnspecified(rep._rootDesc['resources']['activities']['methods']['list']['parameters']['applicationName']['enum'])
|
valid_apps = _getEnumValuesMinusUnspecified(rep._rootDesc['resources']['activities']['methods']['list']['parameters']['applicationName']['enum'])+['customer', 'user']
|
||||||
if report not in valid_apps:
|
if report not in valid_apps:
|
||||||
controlflow.expected_argument_exit("report", ", ".join(valid_apps), report)
|
controlflow.expected_argument_exit("report", ", ".join(sorted(valid_apps)), report)
|
||||||
customerId = GC_Values[GC_CUSTOMER_ID]
|
customerId = GC_Values[GC_CUSTOMER_ID]
|
||||||
if customerId == MY_CUSTOMER:
|
if customerId == MY_CUSTOMER:
|
||||||
customerId = None
|
customerId = None
|
||||||
|
|||||||
Reference in New Issue
Block a user