#NEWLINE# def get_initial( self ) : #NEWLINE# #INDENT# qos_spec_id = self . kwargs [ 'qos_spec_id' ] #NEWLINE# key = self . kwargs [ 'key' ] #NEWLINE# try : #NEWLINE# #INDENT# qos_specs = api . cinder . qos_spec_get ( key . request , qos_spec_id ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# qos_specs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# exceptions . handle ( self . request , _ ( 'Unable to retrieve QoS spec details.' ) ) #NEWLINE# #UNINDENT# return { #NEWLINE# #INDENT# 'qos_spec_id' : qos_spec_id , #NEWLINE# 'key' : key , #NEWLINE# 'value' : qos_specs . specs . get ( key , '' ) , #NEWLINE# #UNINDENT# }