def _determine_notification_info(notification_arn, notification_arn_from_pillar, notification_types, notification_types_from_pillar):
 pillar_arn_list = copy.deepcopy(__salt__['config.option'](notification_arn_from_pillar, {}))
 pillar_arn = None
 if (len(pillar_arn_list) > 0):
  pillar_arn = pillar_arn_list[0]
 pillar_notification_types = copy.deepcopy(__salt__['config.option'](notification_types_from_pillar, {}))
 arn = (notification_arn if notification_arn else pillar_arn)
 types = (notification_types if notification_types else pillar_notification_types)
 return (arn, types)

def _determine_notification_info ( notification_arn , notification_arn_from_pillar , notification_types , notification_types_from_pillar ) : pillar_arn_list = copy . deepcopy ( __salt__ [ 'config.option' ] ( notification_arn_from_pillar , { } ) ) pillar_arn = None if ( len ( pillar_arn_list ) > 0 ) : pillar_arn = pillar_arn_list [ 0 ] pillar_notification_types = copy . deepcopy ( __salt__ [ 'config.option' ] ( notification_types_from_pillar , { } ) ) arn = ( notification_arn if notification_arn else pillar_arn ) types = ( notification_types if notification_types else pillar_notification_types ) return ( arn , types )
helper method for present .