apps.crc_sus
Print an account’s service unit allocation, with a usage value relative to that amount.
This application is designed to interface with the Keystone banking system and will not work without a running keystone installation.
Module Contents
- class CrcSus
Bases:
apps.utils.cli.BaseParser
Display the number of service units allocated to an account.
- default_group
- help_text
- static build_output_string(account: str, used: int, total: int, cluster: str) str
Build a string describing an account’s service unit allocation
- Parameters:
account – The name of the account
total – The number of service units allocated for each cluster
used – number of SUs used on the cluster
cluster – name of cluster
- Returns:
A string summarizing the account allocation
- app_logic(args: argparse.Namespace) None
Logic to evaluate when executing the application
- Parameters:
args – Parsed command line arguments