FAQ
Attempting to delete an pki key from a specific queue using the Salt Pepper
library.

The key fails to get deleted.


Python output filtered for readability.

deniedKeys = api_handle.low([{'client': 'wheel', 'fun': 'key.list',
'match': 'denied'}]);print
deniedKeys['return'][0]['data']['return']['minions_denied']

[u*'imgfactory-jump-3*', u'imgfactory-nm-1', u'imgfactory-nm-2']
delStatus = api_handle.low([{'client': 'wheel', 'fun':
'key.delete_dict', 'match': {'minions_denied':*'imgfactory-jump-3*'}}]);
print delStatus
{u'return': [{u'tag': u'salt/wheel/20150519191519508162', u'data': {u'jid':
u'20150519191519508162', u'return': {}, u'success': True, u'_stamp':
u'2015-05-19T19:15:20.389127', u'tag': u'salt/wheel/20150519191519508162',
u'user': u'jenkins', u'fun': u'wheel.key.delete_dict'}}]}
deniedKeys = api_handle.low([{'client': 'wheel', 'fun': 'key.list',
'match': 'denied'}]);print
deniedKeys['return'][0]['data']['return']['minions_denied']
[u'*imgfactory-jump-3*', u'imgfactory-nm-1', u'imgfactory-nm-2']

--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 3 | next ›
Discussion Overview
groupsalt-users @
postedMay 19, '15 at 9:00p
activeMay 29, '15 at 2:07a
posts3
users2

2 users in discussion

Rohit Sood: 2 posts Seth House: 1 post

People

Translate

site design / logo © 2022 Grokbase