mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Pop off the version when aggregating pkg states
This squelches a spurious warning that we get due to rewriting the low data such that the name and version are aggregated under the "pkgs" arg, with the "version" key remaining in the low chunk.
This commit is contained in:
parent
0055fda3e9
commit
1a731e0216
1 changed files with 3 additions and 2 deletions
|
@ -2431,8 +2431,9 @@ def mod_aggregate(low, chunks, running):
|
|||
pkgs.extend(chunk['pkgs'])
|
||||
chunk['__agg__'] = True
|
||||
elif 'name' in chunk:
|
||||
if 'version' in chunk:
|
||||
pkgs.append({chunk['name']: chunk['version']})
|
||||
version = chunk.pop('version', None)
|
||||
if version is not None:
|
||||
pkgs.append({chunk['name']: version})
|
||||
else:
|
||||
pkgs.append(chunk['name'])
|
||||
chunk['__agg__'] = True
|
||||
|
|
Loading…
Add table
Reference in a new issue