'Reads the inventory from the cache file and returns it as a JSON
object'

def get_inventory_from_cache(self):

    if self.args.tags_only:
        cache = open(self.cache_path_tags, 'r')
    else:
        cache = open(self.cache_path_cache, 'r')
    json_inventory = cache.read()
    return json_inventory
