parameters: (self, devices)
return_statement: return {'success': 'Added {} Spares'.format(len(devices))}
docstring: Set the given devices as spares in compatible RAIDS.
docstring_summary: Set the given devices as spares in compatible RAIDS.
docstring_tokens: Set the given devices as spares in compatible RAIDS .
function: def spare_set(self, devices):
      """Set the given devices as spares in compatible RAIDS."""
  
      try:
          dm.add_spare(devices)
      except RuntimeError as err:
          return {'warning': 'Could not add spare: {}'.format(err)}
  
      return {'success': 'Added {} Spares'.format(len(devices))}
function_tokens: def spare_set ( self , devices ) : try : dm . add_spare ( devices ) except RuntimeError as err : return { 'warning' : 'Could not add spare: {}' . format ( err ) } return { 'success' : 'Added {} Spares' . format ( len ( devices ) ) }