Skip to content

Commit

Permalink
Remove some more raw string formatting forgotten in f4fb771.
Browse files Browse the repository at this point in the history
Running pkg.upgrade without arguments worked, it was generating
`pkg upgrade --y` which is all right because the only possibility is
`--yes`.  But when running, for example, with dryrun=True, it ended up
generating `pkg upgrade --n` and `--n` and there are more than one
option that starts with `n`, `--no-install-scripts`, `--dry-run` and
`--no-repo-update`.
  • Loading branch information
mat813 committed Apr 25, 2017
1 parent 25a438a commit f70ca0f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions salt/modules/pkgng.py
Original file line number Diff line number Diff line change
Expand Up @@ -1151,8 +1151,6 @@ def upgrade(*names, **kwargs):
opts += 'n'
if not dryrun:
opts += 'y'
if opts:
opts = '-' + opts

cmd = _pkg(jail, chroot, root)
cmd.append('upgrade')
Expand Down

0 comments on commit f70ca0f

Please sign in to comment.