def get_qos_specs(ctxt, spec_id):
 if (spec_id is None):
  msg = _('id cannot be None')
  raise exception.InvalidQoSSpecs(reason=msg)
 if (ctxt is None):
  ctxt = context.get_admin_context()
 return objects.QualityOfServiceSpecs.get_by_id(ctxt, spec_id)

def get_qos_specs ( ctxt , spec_id ) : if ( spec_id is None ) : msg = _ ( 'id cannot be None' ) raise exception . InvalidQoSSpecs ( reason = msg ) if ( ctxt is None ) : ctxt = context . get_admin_context ( ) return objects . QualityOfServiceSpecs . get_by_id ( ctxt , spec_id )
retrieves single qos specs by id .