knife-azure 3.0.4 → 3.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/azure/resource_management/windows_credentials.rb +2 -2
- data/lib/azure/service_management/rest.rb +4 -3
- data/lib/azure/service_management/role.rb +1 -1
- data/lib/chef/knife/azure_server_create.rb +1 -1
- data/lib/chef/knife/azurerm_server_create.rb +1 -1
- data/lib/chef/knife/bootstrap_azurerm.rb +1 -1
- data/lib/chef/knife/helpers/azure_base.rb +6 -6
- data/lib/chef/knife/helpers/azurerm_base.rb +6 -6
- data/lib/knife-azure/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: '09efc06fd6788aa94f2af8ace7bd411b9d90c4f3df736a0559997bc5298a5336'
|
4
|
+
data.tar.gz: 6cfd515b9371c8d4a7c0c7ed58575f581470c2ecd3ed7604329291c2fb1a1eec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8e905e8136596fa27fa18898f73dd871138f52118792939df1be75da3f4122bcf358529605793b0a517fb7cf37036bf0b3b7f85ff57ffcec1a8aa1efff45652
|
7
|
+
data.tar.gz: 25b0054daa620887733644c1ad87983fd7e5c325de4781071c81773dee39f83c7a8c2a308c9ee1341220583be9415d8596fa8ac9cf525fd32d0d2facec11c8d0
|
@@ -19,8 +19,8 @@
|
|
19
19
|
# XPLAT stores the access token and other information in windows credential manager.
|
20
20
|
# Using FFI to call CredRead function
|
21
21
|
require "chef"
|
22
|
-
require "mixlib/shellout"
|
23
|
-
require "ffi"
|
22
|
+
require "mixlib/shellout" unless defined?(Mixlib::ShellOut)
|
23
|
+
require "ffi" unless defined?(FFI)
|
24
24
|
require "chef/win32/api"
|
25
25
|
|
26
26
|
module Azure
|
@@ -16,9 +16,10 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
-
require "net/
|
20
|
-
require "
|
21
|
-
require "
|
19
|
+
require "net/http" unless defined?(Net::HTTP)
|
20
|
+
require "openssl" unless defined?(OpenSSL)
|
21
|
+
require "uri" unless defined?(URI)
|
22
|
+
require "nokogiri" unless defined?(Nokogiri)
|
22
23
|
|
23
24
|
module AzureAPI
|
24
25
|
|
@@ -204,10 +204,10 @@ class Chef
|
|
204
204
|
end
|
205
205
|
|
206
206
|
def parse_publish_settings_file(filename)
|
207
|
-
require "nokogiri"
|
208
|
-
require "base64"
|
209
|
-
require "openssl"
|
210
|
-
require "uri"
|
207
|
+
require "nokogiri" unless defined?(Nokogiri)
|
208
|
+
require "base64" unless defined?(Base64)
|
209
|
+
require "openssl" unless defined?(OpenSSL)
|
210
|
+
require "uri" unless defined?(URI)
|
211
211
|
begin
|
212
212
|
doc = Nokogiri::XML(File.open(find_file(filename)))
|
213
213
|
profile = doc.at_css("PublishProfile")
|
@@ -235,8 +235,8 @@ class Chef
|
|
235
235
|
end
|
236
236
|
|
237
237
|
def parse_azure_profile(filename, errors)
|
238
|
-
require "openssl"
|
239
|
-
require "uri"
|
238
|
+
require "openssl" unless defined?(OpenSSL)
|
239
|
+
require "uri" unless defined?(URI)
|
240
240
|
errors = [] if errors.nil?
|
241
241
|
azure_profile = File.read(File.expand_path(filename))
|
242
242
|
azure_profile = JSON.parse(azure_profile)
|
@@ -35,8 +35,8 @@ class Chef
|
|
35
35
|
require "chef/json_compat"
|
36
36
|
require_relative "../../../azure/resource_management/ARM_interface"
|
37
37
|
require "chef/mixin/shell_out"
|
38
|
-
require "time"
|
39
|
-
require "json"
|
38
|
+
require "time" unless defined?(Time)
|
39
|
+
require "json" unless defined?(JSON)
|
40
40
|
|
41
41
|
if Chef::Platform.windows?
|
42
42
|
require_relative "../../azure/resource_management/windows_credentials"
|
@@ -172,10 +172,10 @@ class Chef
|
|
172
172
|
end
|
173
173
|
|
174
174
|
def parse_publish_settings_file(filename)
|
175
|
-
require "nokogiri"
|
176
|
-
require "base64"
|
177
|
-
require "openssl"
|
178
|
-
require "uri"
|
175
|
+
require "nokogiri" unless defined?(Nokogiri)
|
176
|
+
require "base64" unless defined?(Base64)
|
177
|
+
require "openssl" unless defined?(OpenSSL)
|
178
|
+
require "uri" unless defined?(URI)
|
179
179
|
begin
|
180
180
|
doc = Nokogiri::XML(File.open(find_file(filename)))
|
181
181
|
profile = doc.at_css("PublishProfile")
|
data/lib/knife-azure/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-azure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Barry Davis
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-08-
|
12
|
+
date: 2020-08-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chef
|