(self, devices)
return {'success': 'Added {} Spares'.format(len(devices))}
Set the given devices as spares in compatible RAIDS.
Set the given devices as spares in compatible RAIDS.
Set the given devices as spares in compatible RAIDS .
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))}
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 ) ) }