Skip to content

Commit c1c6e48

Browse files
Fix tag list building logic
Signed-off-by: Saravanan Raju <saravanan.footloose@gmail.com>
1 parent 9a102f5 commit c1c6e48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cdpy/dw.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ def create_vw(self, cluster_id:str, dbc_id:str, vw_type:str, name:str, template:
106106
autoscaling_options = None
107107

108108
tag_list = []
109-
for item in tags:
110-
tag_list.append({'key': item.key, 'value': item.value})
109+
for key,value in tags.items():
110+
tag_list.append({'key': key, 'value': value})
111111

112112
return self.sdk.call(
113113
svc='dw', func='create_vw', ret_field='vwId', clusterId=cluster_id, dbcId=dbc_id,

0 commit comments

Comments
 (0)