cheffish 0.5.beta.2 → 0.5.beta.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca701871405eca150deff1160b88b92d86457f47
|
4
|
+
data.tar.gz: a56602fdcaf74528eacfec7d1d158af793a6b7f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce70251a6ee30efe88418be3f7daca1d88f72ba434bbb6b2d2c8b88cb7e2329b7d660a6b58687be21b7c454aceb292d77e28fa4b040568285ea9ecb07d3b9788
|
7
|
+
data.tar.gz: 1ebcff6eb5cbe549f3f8026948e9b07a4e01aee9d09ef8b2ae99bf83d416ef8ceaa83da13cc902899df961a7f1e69d6b5fcc1cc1aa480fb9fc46497881e25ca3
|
@@ -38,7 +38,7 @@ class Chef::Provider::ChefDataBagItem < Cheffish::ChefProviderBase
|
|
38
38
|
def load_current_resource
|
39
39
|
begin
|
40
40
|
json = rest.get("data/#{new_resource.data_bag}/#{new_resource.id}")
|
41
|
-
resource = Chef::Resource::ChefDataBagItem.new(new_resource.name)
|
41
|
+
resource = Chef::Resource::ChefDataBagItem.new(new_resource.name, run_context)
|
42
42
|
resource.raw_data json
|
43
43
|
@current_resource = resource
|
44
44
|
rescue Net::HTTPServerException => e
|
@@ -75,7 +75,7 @@ class Chef::Provider::PublicKey < Chef::Provider::LWRPBase
|
|
75
75
|
|
76
76
|
@current_resource = resource
|
77
77
|
else
|
78
|
-
not_found_resource = Chef::Resource::PublicKey.new(new_resource.path)
|
78
|
+
not_found_resource = Chef::Resource::PublicKey.new(new_resource.path, run_context)
|
79
79
|
not_found_resource.action :delete
|
80
80
|
@current_resource = not_found_resource
|
81
81
|
end
|
data/lib/cheffish/version.rb
CHANGED