fix invalid string compare

This commit is contained in:
Michael Calmer 2018-04-18 17:37:05 +02:00
parent 8c19368938
commit 382afba457

View file

@ -1620,7 +1620,7 @@ def install(name=None,
if _yum() == 'dnf':
cmd.extend(['--best', '--allowerasing'])
_add_common_args(cmd)
cmd.append('install' if pkg_type is not 'advisory' else 'update')
cmd.append('install' if pkg_type != 'advisory' else 'update')
cmd.extend(targets)
out = __salt__['cmd.run_all'](
cmd,