Skip to content

Commit

Permalink
Insert --no-refresh before install in Zypper.
Browse files Browse the repository at this point in the history
Instead of appending --no-refresh after install, this will insert --no--refresh as
the first element of the list.
  • Loading branch information
abednarik committed Jun 3, 2016
1 parent daf462e commit 7c909a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/modules/zypper.py
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ def install(name=None,
fromrepoopt = ''
cmd_install = ['install', '--name', '--auto-agree-with-licenses']
if not refresh:
cmd_install.append('--no-refresh')
cmd_install.insert(0, '--no-refresh')
if skip_verify:
cmd_install.append('--no-gpg-checks')
if downloadonly:
Expand Down

0 comments on commit 7c909a1

Please sign in to comment.