mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
The default value is not None
This commit is contained in:
parent
aad0e33af8
commit
de86ed6303
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ def build_minion_target(options, vm_name):
|
|||
target = vm_name
|
||||
for grain in options.grain_target:
|
||||
target += ' and G@{0}'.format(grain)
|
||||
if options.grain_target is not None:
|
||||
if options.grain_target:
|
||||
return '-C "{0}"'.format(target)
|
||||
return target
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue