varaiblemanager, more efficienet vars file reads (#77570) (#77596)

(cherry picked from commit 2c2a204dc6)
pull/77611/head
Brian Coca 4 years ago committed by GitHub
parent 9deb5ad45a
commit e51e36ea6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- variablemanager, more efficient read of vars files

@ -353,8 +353,7 @@ class VariableManager:
try:
play_search_stack = play.get_search_path()
found_file = real_file = self._loader.path_dwim_relative_stack(play_search_stack, 'vars', vars_file)
decrypted_file = self._loader.get_real_file(found_file)
data = preprocess_vars(self._loader.load_from_file(decrypted_file, unsafe=True))
data = preprocess_vars(self._loader.load_from_file(found_file, unsafe=True, cache=False))
if data is not None:
for item in data:
all_vars = _combine_and_track(all_vars, item, "play vars_files from '%s'" % vars_file)

Loading…
Cancel
Save