def _determine_termination_policies(termination_policies, termination_policies_from_pillar):
 pillar_termination_policies = copy.deepcopy(__salt__['config.option'](termination_policies_from_pillar, []))
 if ((not termination_policies) and (len(pillar_termination_policies) > 0)):
  termination_policies = pillar_termination_policies
 return termination_policies

def _determine_termination_policies ( termination_policies , termination_policies_from_pillar ) : pillar_termination_policies = copy . deepcopy ( __salt__ [ 'config.option' ] ( termination_policies_from_pillar , [ ] ) ) if ( ( not termination_policies ) and ( len ( pillar_termination_policies ) > 0 ) ) : termination_policies = pillar_termination_policies return termination_policies
helper method for present .