'Reads the index from the cache file sets self.index'

def load_inventory_from_cache(self):

    try:
        cache = open(self.cache_path_inventory, 'r')
        json_inventory = cache.read()
        self.inventory = json.loads(json_inventory)
        return True
    except:
        self.log.error('Error    while    loading    inventory:\n%s', traceback.format_exc())
        self.inventory = {}
        return False
