Skip to content

Commit

Permalink
Update awscloud.py
Browse files Browse the repository at this point in the history
修复AWS CPU计算错误bug
  • Loading branch information
406226161 authored Aug 13, 2024
1 parent 1069d0f commit 4e74d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask-consul/units/cloud/awscloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4e74d0b

Please sign in to comment.