Feature resquest: No way to delete a grain which has a nested key #67697
Replies: 10 comments
-
@tomlaredo, thanks for the report. |
Beta Was this translation helpful? Give feedback.
-
Same with Salt 2016.3.1 on Centos7:
|
Beta Was this translation helpful? Give feedback.
-
anything on this? |
Beta Was this translation helpful? Give feedback.
-
Gosh, this hasn't been fixed yet? |
Beta Was this translation helpful? Give feedback.
-
still no fix or workaround for removing a nested key? |
Beta Was this translation helpful? Give feedback.
-
A co-worker mentioned this to me the other day and it looks to work. I'm surprised it hasn't been mentioned in this issue:
Even though Examples:
|
Beta Was this translation helpful? Give feedback.
-
This is very helpful. example:
My goal for example is to remove value4 from foobar which is nested in ztest grain. |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
This feature still lacks. |
Beta Was this translation helpful? Give feedback.
-
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
-
Description of Issue
Currently, there is no way to delete a grain which has a nested key.
https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.grains.html
Actions that allow nested keys:
Actions that do NOT allow nested keys but should allow them:
Then, it's impossible to remove a grain like "foo:bar:config", even with a grains.delval "foo:bar:config" destructive=True
Versions Report
Salt Version:
Salt: 2015.8.8.2
Dependency Versions:
Jinja2: 2.7.3
M2Crypto: 0.21.1
Mako: Not Installed
PyYAML: 3.11
PyZMQ: 14.4.0
Python: 2.7.9 (default, Mar 1 2015, 12:57:24)
RAET: Not Installed
Tornado: 4.2.1
ZMQ: 4.0.5
cffi: 0.8.6
cherrypy: 3.5.0
dateutil: 2.2
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
libgit2: Not Installed
libnacl: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.2
mysql-python: Not Installed
pycparser: 2.10
pycrypto: 2.6.1
pygit2: Not Installed
python-gnupg: Not Installed
smmap: Not Installed
timelib: Not Installed
System Versions:
dist: debian 8.4
machine: x86_64
release: 2.6.32-19-pve
system: debian 8.4
Beta Was this translation helpful? Give feedback.
All reactions