'check to see if we need to update'

def needs_update(self, files=None, content=None, content_type='yaml'):

    objects = self.get()
    if (objects['returncode'] != 0):
        return objects
    data = None
    if files:
        data = Utils.get_resource_file(files[0], content_type)
    elif (content and ('data' in content)):
        data = content['data']
    else:
        data = content
    return (not Utils.check_def_equal(data, objects['results'][0], skip_keys=None, debug=False))
