def _determine_scaling_policies(scaling_policies, scaling_policies_from_pillar):
 pillar_scaling_policies = copy.deepcopy(__salt__['config.option'](scaling_policies_from_pillar, {}))
 if ((not scaling_policies) and (len(pillar_scaling_policies) > 0)):
  scaling_policies = pillar_scaling_policies
 return scaling_policies

def _determine_scaling_policies ( scaling_policies , scaling_policies_from_pillar ) : pillar_scaling_policies = copy . deepcopy ( __salt__ [ 'config.option' ] ( scaling_policies_from_pillar , { } ) ) if ( ( not scaling_policies ) and ( len ( pillar_scaling_policies ) > 0 ) ) : scaling_policies = pillar_scaling_policies return scaling_policies
helper method for present .