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:
Tamas Pal 2018-03-28 12:37:10 +02:00
parent bd1e8bcc7d
commit 7058f10381

View file

@ -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(