Add explanation comment

This commit is contained in:
Bo Maryniuk 2017-01-05 22:40:52 +01:00
parent d8a10e2d7d
commit fedfb7b57a

View File

@ -26,6 +26,10 @@ def get_roster_file(options):
:return:
'''
template = None
# The __disable_custom_roster is always True if Salt SSH Client comes
# from Salt API. In that case no way to define own 'roster_file', instead
# this file needs to be chosen from already validated rosters
# (see /etc/salt/master config).
if options.get('__disable_custom_roster') and options.get('roster_file'):
roster = options.get('roster_file').strip('/')
for roster_location in options.get('rosters'):