From 4e74d0bd6ff3aa1514a32e667c46ce8845e18919 Mon Sep 17 00:00:00 2001 From: Yvan <406226161@qq.com> Date: Tue, 13 Aug 2024 11:26:03 +0800 Subject: [PATCH] Update awscloud.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复AWS CPU计算错误bug --- flask-consul/units/cloud/awscloud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask-consul/units/cloud/awscloud.py b/flask-consul/units/cloud/awscloud.py index cd570e7..e334697 100644 --- a/flask-consul/units/cloud/awscloud.py +++ b/flask-consul/units/cloud/awscloud.py @@ -11,7 +11,7 @@ def exp(account,collect_days,notify_days,notify_amount): def group(account): try: - 现在 = datetime.datetime.now().strftime('%m.%d/%H:%M') + now = datetime.datetime.now().strftime('%m.%d/%H:%M') group_dict = {"1": "1"} # AWS没有资产组概念 consul_kv.put_kv(f'ConsulManager/assets/awscloud/group/{account}',group_dict) count = len(group_dict)