-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Open
Labels
ConfirmedSalt engineer has confirmed bug/feature - often including a MCVESalt engineer has confirmed bug/feature - often including a MCVEGrainsState-Modulebugbroken, incorrect, or confusing behaviorbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
Description
Description of Issue/Question
Hi,
There is a weird behavior of grains.list_present when dict-type in name.
When there is two 'grains.list_present' which follow each other, the second state failed.
The first state create the key of the second state, without the value...
Setup
test:
grains.list_present:
- name: key:subkey:subsubkey1
- value: value1
test1:
grains.list_present:
- name: key:subkey:subsubkey2
- value: value2
Steps to Reproduce Issue
Launch the previous sls and you will have the following result.
minion1:
----------
ID: test
Function: grains.list_present
Name: key:subkey:subsubkey1
Result: True
Comment: Append value value1 to grain key:subkey:subsubkey1
Started: 09:42:42.402113
Duration: 271.755 ms
Changes:
----------
new:
----------
key:
----------
subkey:
----------
subsubkey1:
- value1
subsubkey2:
----------
----------
ID: test1
Function: grains.list_present
Name: key:subkey:subsubkey2
Result: False
Comment: Failed append value value2 to grain key:subkey:subsubkey2
Started: 09:42:42.676705
Duration: 3.28 ms
Changes:
Summary for minion1
------------
Succeeded: 1 (changed=1)
Failed: 1
------------
Total states run: 2
Total run time: 275.035 ms
Versions Report
Salt Version:
Salt: 2018.3.0
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: Not Installed
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.7.2
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: 0.21.1
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.5.1
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.5 (default, Aug 4 2017, 00:39:18)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 15.3.0
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.1.4
System Versions:
dist: centos 7.4.1708 Core
locale: UTF-8
machine: x86_64
release: 3.10.0-693.11.6.el7.x86_64
system: Linux
version: CentOS Linux 7.4.1708 Core
channias, ArthurREGNARD-SopraSteria and SuperPommeDeTerre
Metadata
Metadata
Assignees
Labels
ConfirmedSalt engineer has confirmed bug/feature - often including a MCVESalt engineer has confirmed bug/feature - often including a MCVEGrainsState-Modulebugbroken, incorrect, or confusing behaviorbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around3rd level, incorrect or bad functionality, confusing and lacks a work around