Merge pull request #35608 from eradman/no_top_contents

Provide useful hints for error "No contents found"
This commit is contained in:
Mike Place 2016-08-24 17:18:49 +09:00 committed by GitHub
commit fa89917cd1

View File

@ -2606,7 +2606,10 @@ class BaseHighState(object):
) )
if found == 0: if found == 0:
log.error('No contents found in top file') log.error('No contents found in top file. Please verify '
'that the \'file_roots\' specified in \'etc/master\' are '
'accessible: {0}'.format(repr(self.state.opts['file_roots']))
)
# Search initial top files for includes # Search initial top files for includes
for saltenv, ctops in six.iteritems(tops): for saltenv, ctops in six.iteritems(tops):