#NEWLINE# def show( self , req , id ) : #NEWLINE# #INDENT# 'Return data about the given VSA.' #NEWLINE# context = req . environ [ 'nova.context' ] #NEWLINE# try : #NEWLINE# #INDENT# vsa = self . vsa_api . get ( context , vsa_id = id ) #NEWLINE# #UNINDENT# except exception . NotFound : #NEWLINE# #INDENT# return faults . Fault ( exc . HTTPNotFound ( ) ) #NEWLINE# #UNINDENT# instances = self . _get_instances_by_vsa_id ( context , vsa . get ( 'id' ) ) #NEWLINE# return { #NEWLINE# #INDENT# 'vsa' : _vsa_view ( context , vsa , True , instances ) , #NEWLINE# #UNINDENT# }