'Get end state'

def get_end_state(self):

    self.check_global_args()
    if self.cur_global_cfg['global_cfg']:
        self.end_state['global_cfg'] = self.cur_global_cfg['global_cfg']
    self.check_source_args()
    if self.cur_source_cfg['source_cfg']:
        self.end_state['source_cfg'] = self.cur_source_cfg['source_cfg']
