#NEWLINE# def show_key( kwargs = None , call = None ) : #NEWLINE# #INDENT# '\n    List the keys available\n    ' #NEWLINE# if ( data != 'function' ) : #NEWLINE# #INDENT# log . error ( 'The list_keys function must be called with -f or --function.' ) #NEWLINE# return False #NEWLINE# #UNINDENT# if ( not kwargs ) : #NEWLINE# #INDENT# kwargs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# if ( 'keyname' not in kwargs ) : #NEWLINE# #INDENT# log . error ( 'A keyname is required.' ) #NEWLINE# return False #NEWLINE# #UNINDENT# ( rcode , data ) = query ( command = 'my/keys/{0}' . format ( kwargs [ 'keyname' ] ) , method = 'GET' ) #NEWLINE# return { #NEWLINE# #INDENT# 'keys' : { #NEWLINE# #INDENT# data [ 'name' ] : data [ 'key' ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# }