mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
same top merging strategy works again
get_tops don't set the opts['environment'] from opts['default_top'] if it's empty and top_file_merging_strategy is set to 'same'. In effect get_tops behaves as the merging strategy is the default 'merge'.
This commit is contained in:
parent
bd1e8bcc7d
commit
7058f10381
1 changed files with 1 additions and 0 deletions
|
@ -2817,6 +2817,7 @@ class BaseHighState(object):
|
|||
'top_file_merging_strategy set to \'same\', but no '
|
||||
'default_top configuration option was set'
|
||||
)
|
||||
self.opts['environment'] = self.opts['default_top']
|
||||
|
||||
if self.opts['environment']:
|
||||
contents = self.client.cache_file(
|
||||
|
|
Loading…
Add table
Reference in a new issue