chef-vault 4.1.3 → 4.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef/knife/vault_delete.rb +9 -7
- data/lib/chef-vault/item.rb +8 -6
- data/lib/chef-vault/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14e3a2852ee8d6656907e8a0d56c097457d28407d97019479f445676b5d2b04e
|
4
|
+
data.tar.gz: cf816e130bbb5b811658d2d164c23c8d5c24989ef76908fec4e65a7e3747ab31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f80e43a595981aaf058b86389ca26c97f31b685281a981946ceca1d11468ad132965326c1583b9458dcac400be3d33edb76cfddb933676ae3396d81b1226c97a
|
7
|
+
data.tar.gz: f315160a8a135f005ea8204229910979b506b927b71da1131c76aeba088ec00ea0ba962d7c5c87e5f61b563024bccdcd7865c41c241719cf3ecd73ac33499be9
|
@@ -30,13 +30,15 @@ class Chef
|
|
30
30
|
|
31
31
|
if vault && item
|
32
32
|
delete_object(ChefVault::Item, "#{vault}/#{item}", "chef_vault_item") do
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
33
|
+
# rubocop:disable all
|
34
|
+
begin
|
35
|
+
ChefVault::Item.load(vault, item).destroy
|
36
|
+
rescue ChefVault::Exceptions::KeysNotFound,
|
37
|
+
ChefVault::Exceptions::ItemNotFound
|
38
|
+
raise ChefVault::Exceptions::ItemNotFound,
|
39
|
+
"#{vault}/#{item} not found."
|
40
|
+
end
|
41
|
+
# rubocop:enable all
|
40
42
|
end
|
41
43
|
else
|
42
44
|
show_usage
|
data/lib/chef-vault/item.rb
CHANGED
@@ -89,12 +89,14 @@ class ChefVault
|
|
89
89
|
handle_client_action(search_or_client, action)
|
90
90
|
else
|
91
91
|
search_or_client.each do |name|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
ChefVault::
|
97
|
-
|
92
|
+
# rubocop:disable all
|
93
|
+
begin
|
94
|
+
client = load_actor(name, "clients")
|
95
|
+
handle_client_action(client, action)
|
96
|
+
rescue ChefVault::Exceptions::ClientNotFound
|
97
|
+
ChefVault::Log.warn "node '#{name}' has no 'default' public key; skipping"
|
98
|
+
end
|
99
|
+
# rubocop:enable all
|
98
100
|
end
|
99
101
|
end
|
100
102
|
end
|
data/lib/chef-vault/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-vault
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thom May
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Data encryption support for Chef Infra using data bags
|
14
14
|
email:
|