Update awscloud.py

修复AWS CPU计算错误bug
pull/131/head 1.1.0
Yvan 2024-08-13 11:26:03 +08:00 committed by GitHub
parent 1069d0f57a
commit 4e74d0bd6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ def exp(account,collect_days,notify_days,notify_amount):
def group(account): def group(account):
try: try:
现在 = datetime.datetime.now().strftime('%m.%d/%H:%M') now = datetime.datetime.now().strftime('%m.%d/%H:%M')
group_dict = {"1": "1"} # AWS没有资产组概念 group_dict = {"1": "1"} # AWS没有资产组概念
consul_kv.put_kv(f'ConsulManager/assets/awscloud/group/{account}',group_dict) consul_kv.put_kv(f'ConsulManager/assets/awscloud/group/{account}',group_dict)
count = len(group_dict) count = len(group_dict)