def info(gandi): """Display information about hosting account. """ output_keys = ['handle', 'credit'] account = gandi.account.all() output_account(gandi, account, output_keys) return account
def info(gandi): """Display information about hosting account. """ output_keys = ['handle', 'credit', 'prepaid'] account = gandi.account.all() account['prepaid_info'] = gandi.contact.balance().get('prepaid', {}) output_account(gandi, account, output_keys) return account
def info(gandi): """Display information about hosting account. """ output_keys = ['handle', 'credit'] account = gandi.account.info() creditusage = gandi.account.creditusage() account.update({'credit_usage': creditusage}) output_account(gandi, account, output_keys) return account