diff --git a/salt/modules/pkgng.py b/salt/modules/pkgng.py index 838085c568b9..1e7b5c94b6da 100644 --- a/salt/modules/pkgng.py +++ b/salt/modules/pkgng.py @@ -730,7 +730,7 @@ def install(name=None, if pkg_params is None or len(pkg_params) == 0: return {} - opts = '' + opts = 'y' repo_opts = '' if salt.utils.is_true(orphan): opts += 'A' @@ -742,8 +742,6 @@ def install(name=None, opts += 'U' if salt.utils.is_true(dryrun): opts += 'n' - if not salt.utils.is_true(dryrun): - opts += 'y' if salt.utils.is_true(quiet): opts += 'q' if salt.utils.is_true(reinstall_requires):