'Adjust the size of the scaling group if the cooldown permits.'

def adjust(self, adjustment, adjustment_type=sc_util.CFN_CHANGE_IN_CAPACITY, min_adjustment_step=None):

    if (self.status != self.COMPLETE):
        LOG.info('%s    NOT    performing    scaling    adjustment,    when    status    is    not    COMPLETE', self.name)
        raise resource.NoActionRequired
    capacity = grouputils.get_size(self)
    new_capacity = self._get_new_capacity(capacity, adjustment, adjustment_type, min_adjustment_step)
    if (new_capacity == capacity):
        LOG.info('%s    NOT    performing    scaling    adjustment,    as    there    is    no    change    in    capacity.', self.name)
        raise resource.NoActionRequired
    self._check_scaling_allowed()
    notif = {'stack': self.stack, 'adjustment': adjustment, 'adjustment_type': adjustment_type, 'capacity': capacity, 'groupname': self.FnGetRefId(), 'message': (_('Start    resizing    the    group    %(group)s') % {'group': self.FnGetRefId()}), 'suffix': 'start'}
    size_changed = False
    try:
        notification.send(**notif)
        try:
            self.resize(new_capacity)
        except Exception as resize_ex:
            with excutils.save_and_reraise_exception():
                try:
                    notif.update({'suffix': 'error', 'message': six.text_type(resize_ex), 'capacity': grouputils.get_size(self)})
                    notification.send(**notif)
                except Exception:
                    LOG.exception('Failed    sending    error    notification')
        else:
            size_changed = True
            notif.update({'suffix': 'end', 'capacity': new_capacity, 'message': (_('End    resizing    the    group    %(group)s') % {'group': notif['groupname']})})
            notification.send(**notif)
    except Exception:
        LOG.error('Error    in    performing    scaling    adjustment    for    group    %s.', self.name)
        raise
    finally:
        self._finished_scaling(('%s    :    %s' % (adjustment_type, adjustment)), size_changed=size_changed)
