fix:(策略)AddPolicies关键字返回值修改,新增一条策略返回一个数字,新增多条策略返回list

This commit is contained in:
wangxin
2020-06-30 18:40:48 +08:00
parent 568029c8ef
commit cec28c7a7a

View File

@@ -341,14 +341,14 @@ Get-PolicyIds
${policyIds} Create List ${policyIds} Create List
FOR ${policy} IN @{value['data']['policyList']} FOR ${policy} IN @{value['data']['policyList']}
${policyIdList} Create List ${policy['policyId']} #${policyIdList} Create List ${policy['policyId']}
${policyObj} Create Dictionary policyType=${policy['policyType']} policyIds=${policyIdList} #${policyObj} Create Dictionary policyType=${policy['policyType']} policyIds=${policyIdList}
Append To List ${policyIds} ${policyObj} #Append To List ${policyIds} ${policyObj}
#Log To Console ${policy['referenceObject']} Append To List ${policyIds} ${policy['policyId']}
#${objectType} Evaluate type(${policy['referenceObject']})
#Log To Console ${objectType}
END END
${len} Get Length ${policyIds}
${policyIds} Run Keyword If ${len}==1 Set Variable ${policyIds[0]}
... ELSE Set Variable ${policyIds}
[Return] ${policyIds} [Return] ${policyIds}
DeletePolicyWithParamDict DeletePolicyWithParamDict
[Documentation] [Documentation]