#NEWLINE# @ rpcmethod ( signature = [ STATUS_TYPE , URN_TYPE , CREDENTIALS_TYPE ] , url_name = 'optin_sfa' ) #NEWLINE# def SliverStatus( slice_xrn , creds , options ) : #NEWLINE# #INDENT# pm . check_permissions ( 'SliverStatus' , locals ( ) ) #NEWLINE# try : #NEWLINE# #INDENT# resources = aggregate . SliverStatus ( slice_xrn , slice_xrn ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# raise OCFSfaError ( e , 'SliverStatus' ) #NEWLINE# #UNINDENT# struct = { #NEWLINE# #INDENT# 'geni_urn' : slice_xrn , #NEWLINE# 'geni_status' : 'ready' , #NEWLINE# 'geni_resources' : resources , #NEWLINE# #UNINDENT# } #NEWLINE# to_return = { #NEWLINE# #INDENT# 'output' : '' , #NEWLINE# 'geni_api' : 2 , #NEWLINE# 'code' : { #NEWLINE# #INDENT# 'am_type' : 'sfa' , #NEWLINE# 'geni_code' : 0 , #NEWLINE# #UNINDENT# } , #NEWLINE# 'value' : struct , #NEWLINE# #UNINDENT# } #NEWLINE# return to_return