'judge whether configuration has existed'

def judge_if_config_exist(self):

    if (self.state == 'absent'):
        return False
    delta = set(self.proposed.items()).difference(self.existing.items())
    delta = dict(delta)
    if ((len(delta) == 1) and delta['state']):
        return True
    return False
