From 7a26aff357f2cff0726617c228539054bfae3960 Mon Sep 17 00:00:00 2001 From: Glandos Date: Fri, 8 Nov 2019 22:16:45 +0100 Subject: [PATCH] Fix cache example (#64600) --- docs/docsite/rst/dev_guide/developing_inventory.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docsite/rst/dev_guide/developing_inventory.rst b/docs/docsite/rst/dev_guide/developing_inventory.rst index e93787014f8..178229319e8 100644 --- a/docs/docsite/rst/dev_guide/developing_inventory.rst +++ b/docs/docsite/rst/dev_guide/developing_inventory.rst @@ -260,7 +260,7 @@ Now that you've enabled caching, loaded the correct plugin, and retrieved a uniq # This occurs if the cache_key is not in the cache or if the cache_key expired, so the cache needs to be updated cache_needs_update = True - if cache_needs_updates: + if cache_needs_update: results = self.get_inventory() # set the cache