def info(gandi, resource): """Display information about a domain.""" output_keys = ['fqdn', 'nameservers', 'services', 'zone_id', 'tags', 'created', 'expires', 'updated'] contact_field = ['owner', 'admin', 'bill', 'tech', 'reseller'] result = gandi.domain.info(resource) output_contact_info(gandi, result['contacts'], contact_field, justify=12) output_domain(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', 'created', 'expires', 'updated' ] contact_field = ['owner', 'admin', 'bill', 'tech', 'reseller'] result = gandi.domain.info(resource) output_contact_info(gandi, result['contacts'], contact_field, justify=12) output_domain(gandi, result, output_keys, justify=12) return result