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
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