def keys_create(gandi, fqdn, flag):
    """Create key for a domain."""
    key_info = gandi.dns.keys_create(fqdn, int(flag))

    output_keys = ['uuid', 'algorithm', 'algorithm_name', 'ds', 'fingerprint',
                   'public_key', 'flags', 'tag', 'status']
    output_generic(gandi, key_info, output_keys, justify=15)
    return key_info
def keys_create ( gandi , fqdn , flag ) : key_info = gandi . dns . keys_create ( fqdn , int ( flag ) ) output_keys = [ 'uuid' , 'algorithm' , 'algorithm_name' , 'ds' , 'fingerprint' , 'public_key' , 'flags' , 'tag' , 'status' ] output_generic ( gandi , key_info , output_keys , justify = 15 ) return key_info
Create key for a domain.