def _compile_state(mods=None, saltenv='base'):
 st_ = HighState(__opts__)
 (high_data, errors) = st_.render_highstate({saltenv: mods})
 (high_data, ext_errors) = st_.state.reconcile_extend(high_data)
 errors += ext_errors
 errors += st_.state.verify_high(high_data)
 if errors:
  return errors
 (high_data, req_in_errors) = st_.state.requisite_in(high_data)
 errors += req_in_errors
 high_data = st_.state.apply_exclude(high_data)
 if errors:
  return errors
 return st_.state.compile_high_data(high_data)

def _compile_state ( mods = None , saltenv = 'base' ) : st_ = HighState ( __opts__ ) ( high_data , errors ) = st_ . render_highstate ( { saltenv : mods } ) ( high_data , ext_errors ) = st_ . state . reconcile_extend ( high_data ) errors += ext_errors errors += st_ . state . verify_high ( high_data ) if errors : return errors ( high_data , req_in_errors ) = st_ . state . requisite_in ( high_data ) errors += req_in_errors high_data = st_ . state . apply_exclude ( high_data ) if errors : return errors return st_ . state . compile_high_data ( high_data )
generates the chunks of lowdata from the list of modules .