def _state_run(self):
        '''
        Execute a state run based on information set in the minion config file
        '''
        if self.opts['startup_states']:
            if self.opts.get('master_type', 'str') == 'disable' and \
                        self.opts.get('file_client', 'remote') == 'remote':
                log.warning(
                    'Cannot run startup_states when \'master_type\' is set '
                    'to \'disable\' and \'file_client\' is set to '
                    '\'remote\'. Skipping.'
                )
            else:
                data = {'jid': 'req', 'ret': self.opts.get('ext_job_cache', '')}
                if self.opts['startup_states'] == 'sls':
                    data['fun'] = 'state.sls'
                    data['arg'] = [self.opts['sls_list']]
                elif self.opts['startup_states'] == 'top':
                    data['fun'] = 'state.top'
                    data['arg'] = [self.opts['top_file']]
                else:
                    data['fun'] = 'state.highstate'
                    data['arg'] = []
                self._handle_decoded_payload(data)
def _state_run ( self ) : if self . opts [ 'startup_states' ] : if self . opts . get ( 'master_type' , 'str' ) == 'disable' and self . opts . get ( 'file_client' , 'remote' ) == 'remote' : log . warning ( 'Cannot run startup_states when \'master_type\' is set ' 'to \'disable\' and \'file_client\' is set to ' '\'remote\'. Skipping.' ) else : data = { 'jid' : 'req' , 'ret' : self . opts . get ( 'ext_job_cache' , '' ) } if self . opts [ 'startup_states' ] == 'sls' : data [ 'fun' ] = 'state.sls' data [ 'arg' ] = [ self . opts [ 'sls_list' ] ] elif self . opts [ 'startup_states' ] == 'top' : data [ 'fun' ] = 'state.top' data [ 'arg' ] = [ self . opts [ 'top_file' ] ] else : data [ 'fun' ] = 'state.highstate' data [ 'arg' ] = [ ] self . _handle_decoded_payload ( data )
Execute a state run based on information set in the minion config file