def exit_standby(name, instance_ids, should_decrement_desired_capacity=False, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn_autoscaling_boto3(region=region, key=key, keyid=keyid, profile=profile)
 try:
  response = conn.exit_standby(InstanceIds=instance_ids, AutoScalingGroupName=name)
 except ClientError as e:
  err = salt.utils.boto3.get_error(e)
  if (e.response.get('Error', {}).get('Code') == 'ResourceNotFoundException'):
   return {'exists': False}
  return {'error': err}
 return all(((activity['StatusCode'] != 'Failed') for activity in response['Activities']))

def exit_standby ( name , instance_ids , should_decrement_desired_capacity = False , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn_autoscaling_boto3 ( region = region , key = key , keyid = keyid , profile = profile ) try : response = conn . exit_standby ( InstanceIds = instance_ids , AutoScalingGroupName = name ) except ClientError as e : err = salt . utils . boto3 . get_error ( e ) if ( e . response . get ( 'Error' , { } ) . get ( 'Code' ) == 'ResourceNotFoundException' ) : return { 'exists' : False } return { 'error' : err } return all ( ( ( activity [ 'StatusCode' ] != 'Failed' ) for activity in response [ 'Activities' ] ) )
exit desired instances from standby mode .