Skip to content

Commit ef856c5

Browse files
committed
adjust sunglasses a bit
1 parent 3f78e8b commit ef856c5

File tree

1 file changed

+3
-4
lines changed
  • cache/collections/ansible_collections/alancoding/basic/plugins/inventory

1 file changed

+3
-4
lines changed

cache/collections/ansible_collections/alancoding/basic/plugins/inventory/only_cache.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,12 @@ def parse(self, inventory, loader, path, cache=False):
4646
inventory_cli.inventory = manager
4747
inventory_cli.loader = loader
4848

49-
top = inventory_cli._get_group('all')
50-
cache_key = self.get_cache_key(path)
51-
52-
# some people will not like me for the following line, but you know
49+
# This gets called after all sources are parsed, but idempotence
5350
# ▄▄█████████████████████████████─
5451
# ▀▀▀───▀█▄▀▄▀████▀──▀█▄▀▄▀████▀──
5552
# ────────▀█▄█▄█▀──────▀█▄█▄█▀────
5653
inventory.reconcile_inventory()
5754

55+
top = inventory_cli._get_group('all')
56+
cache_key = self.get_cache_key(path)
5857
self.cache[cache_key] = inventory_cli.json_inventory(top)

0 commit comments

Comments
 (0)