varaiblemanager, more efficienet vars file reads (#77570)

pull/77597/head
Brian Coca 2 years ago committed by GitHub
parent 3cbfee7852
commit 2c2a204dc6
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