mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add explanation comment
This commit is contained in:
parent
62f2c87080
commit
d1516664f7
1 changed files with 4 additions and 0 deletions
|
@ -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'):
|
||||
|
|
Loading…
Add table
Reference in a new issue