Update sync_ecs.py

main
StarsL.cn 2025-02-18 10:14:24 +08:00 committed by GitHub
parent 734c754d0e
commit f854e995d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ def w2consul(vendor,account,region,ecs_dict):
if vendor == 'tencent_cloud' and v['ecstag'] != []:
ecstag_dict = {}
for ecstag in v['ecstag']:
ecstag_dict[ecstag['Key']] = ecstag['Value']
ecstag_dict[ecstag.Key] = ecstag.Value
data['Meta'].update(ecstag_dict)
reg = requests.put(puturl, headers=headers, data=json.dumps(data))