<p>This turned out to be a bug in salt version 3006.1. See bug report <a href="https://github.com/saltstack/salt/issues/64563" rel="nofollow noreferrer">https://github.com/saltstack/salt/issues/64563</a>.</p>

CC BY-SA 4.0
2023-06-28T00:14:51.950Z
2023-06-28T00:14:51.950Z
bdrx
<p>For some of my <code>pkg.installed</code> states I get this warning</p>
<blockquote>
<p>[INFO    ] Executing state pkg.installed for [install haproxy package]</p>
<p>[WARNING ] 'version' argument will be ignored for multiple package targets</p>
</blockquote>
<p>I am not specifying a <code>'version'</code> argument though.</p>
<p>My state looks like this:</p>
<pre><code>&quot;install haproxy package&quot;:
  pkg.installed:
    - pkgs:
      - haproxy
</code></pre>
<p>Why am I getting this warning and how do I get rid of it?</p>

<salt>
In salt what causes the WARNING 'version' argument will be ignored for multiple package targets
bdrx
# In salt what causes the WARNING 'version' argument will be ignored for multiple package targets

(Asked by: username_0 on 2023-06-27)

For some of my pkg.installed states I get this warning

[INFO    ] Executing state pkg.installed for [install haproxy package]
[WARNING ] 'version' argument will be ignored for multiple package targets

I am not specifying a 'version' argument though.
My state looks like this:
"install haproxy package":
  pkg.installed:
    - pkgs:
      - haproxy

Why am I getting this warning and how do I get rid of it?

**Tags:** salt


---

## 1 answers

### Answer by username_0 on 2023-06-28. Score: 0

This turned out to be a bug in salt version 3006.1. See bug report <https://github.com/saltstack/salt/issues/64563>.


---

