Example #1
0
def info(gandi, resource):
    """Display information about a domain."""
    output_keys = ['fqdn', 'nameservers', 'services', 'zone_id', 'tags']
    contact_field = ['owner', 'admin', 'bill', 'tech', 'reseller']

    result = gandi.domain.info(resource)
    output_contact_info(gandi, result['contacts'], contact_field, justify=12)
    output_generic(gandi, result, output_keys, justify=12)

    return result
Example #2
0
def info(gandi, resource):
    """Display information about a domain."""
    output_keys = ['fqdn', 'nameservers', 'services', 'zone_id', 'tags']
    contact_field = ['owner', 'admin', 'bill', 'tech', 'reseller']

    result = gandi.domain.info(resource)
    output_contact_info(gandi, result['contacts'], contact_field, justify=12)
    output_generic(gandi, result, output_keys, justify=12)

    return result
Example #3
0
def info(gandi, resource):
    """Display information about a domain."""
    output_keys = ["fqdn", "nameservers", "services", "zone_id", "tags"]
    contact_field = ["owner", "admin", "bill", "tech", "reseller"]

    result = gandi.domain.info(resource)
    output_contact_info(gandi, result["contacts"], contact_field, justify=12)
    output_generic(gandi, result, output_keys, justify=12)

    return result