Esempio n. 1
0
def info(gandi):
    """Display information about hosting account.
    """
    output_keys = ['handle', 'credit']

    account = gandi.account.all()
    output_account(gandi, account, output_keys)
    return account
Esempio n. 2
0
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
Esempio n. 3
0
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