def display_quota(quota):
"""Display the quota for a service."""
used = '{} {}'.format(
"%.2f" % quota['used']['value'],
quota['used']['unit']
)
size = '{} {}'.format(
"%.2f" % quota['size']['value'],
quota['size']['unit']
)
table = AsciiTable([["Used", used], ["Size", size]])
return table.table
评论列表
文章目录