'check if response message is already succeed.'

def check_response(self, xml_str, xml_name):

    if ('<ok/>' not in xml_str):
        self.module.fail_json(msg=('Error:    %s    failed.' % xml_name))
