'Check if response message is already succeed'

def check_response(self, con_obj, xml_name):

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