mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix invalid string compare
This commit is contained in:
parent
8c19368938
commit
382afba457
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue