From 69fd079507e6a4500c2117b7dad31fa81b7e1299 Mon Sep 17 00:00:00 2001 From: Andreas Geissler Date: Tue, 5 Nov 2024 18:22:30 +0100 Subject: Update deprecated :FOR loops Update SDNC APIs Issue-ID: OOM-3301 Signed-off-by: Andreas Geissler Change-Id: I515e503abef90f3aaa3733d7518d6e738173100e --- robot/resources/aai/create_tenant.robot | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'robot/resources/aai/create_tenant.robot') diff --git a/robot/resources/aai/create_tenant.robot b/robot/resources/aai/create_tenant.robot index 5dc34536..4f6f9e8f 100644 --- a/robot/resources/aai/create_tenant.robot +++ b/robot/resources/aai/create_tenant.robot @@ -85,7 +85,8 @@ Get Cloud Region Update Tenant Dictionary [Arguments] ${dict} ${json} @{list}= Copy List ${json['tenant']} - :FOR ${map} IN @{list} - \ ${status} ${tenant_id}= Run Keyword And Ignore Error Get From Dictionary ${map} tenant-id - \ Run Keyword If '${status}' == 'PASS' Set To Dictionary ${dict} ${tenant_id}=${map} + FOR ${map} IN @{list} + ${status} ${tenant_id}= Run Keyword And Ignore Error Get From Dictionary ${map} tenant-id + Run Keyword If '${status}' == 'PASS' Set To Dictionary ${dict} ${tenant_id}=${map} + END Log ${dict} -- cgit 1.2.3-korg