#NEWLINE# def securitygroup_show( self , context , securitygroup ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . securitygroup_client . securitygroup_get ( securitygroup [ 'neutron_securitygroup_id' ] ) #NEWLINE# securitygroup [ 'status' ] = 'Exist' #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# if ( e . status_code == 404 ) : #NEWLINE# #INDENT# securitygroup [ 'status' ] = 'NotExist' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise exception . OpenStackException ( e . status_code , e . message ) #NEWLINE# #UNINDENT# #UNINDENT# return e