The default value is not None

This commit is contained in:
Pedro Algarvio 2014-04-15 12:35:48 +01:00
parent aad0e33af8
commit de86ed6303

View file

@ -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