Removed unnecessary parenthesis from _pki_minions check

This commit is contained in:
Aaron McDaniel 2018-05-11 08:40:52 -05:00
parent 2107261088
commit edd4cf7398
No known key found for this signature in database
GPG Key ID: 414E29BF03C4C859

View File

@ -240,7 +240,7 @@ class CkMinions(object):
Respects cache if configured
'''
opts_role = self.opts.get('__role')
if ((opts_role == 'master' and self.opts.get('__cli') == 'salt-run') or (opts_role == 'minion')):
if (opts_role == 'master' and self.opts.get('__cli') == 'salt-run') or (opts_role == 'minion'):
# If we're compiling the pillar directly on the master (or running masterless)
# just return our local ID as that is the only one that is available.
return [self.opts['id']]