vagrant-azure 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a28028fe5fa394ab6535f78e67f8ade729fd709
4
- data.tar.gz: 0f5fafc045638222719f0102af678a03707b82b2
3
+ metadata.gz: 6988e9e6d5fd8d3f47e6388ba6d29de2e24859c5
4
+ data.tar.gz: 9c7a6571ee284d5adf5060b7dfa8de439a2bce55
5
5
  SHA512:
6
- metadata.gz: ef18dc3206b2267af138b30147492266cb4ad08896365606c530bcb65d5d0c9dcbd59719bb9d53ad962a7a9ec084869111c9f56a9608f8317715d3ab3da6dfcb
7
- data.tar.gz: 7d65d14e639d694ec264b9b4d3cadb69c2e0fb5fda34db3e06fc232822f3dffb0570c824b35089bcb7e5d500c925df719401aff6b6a01cea7c8cf136f8675716
6
+ metadata.gz: a6fc94b5099e9e693fda510f0444823cffe584e8f9891da5ca51f6833653e67fc0824c1fb1e6f71ce42d91516878897686a35a4032e17f8d3af2ae11d02a45f9
7
+ data.tar.gz: 09a6e2436f4dbb220b57cd7daab62b64429e7e76a6dd1ed0781b9366510512dc93bc47e38ebffcd2f2927e3f50dbdf2b84ab1d898731bbcd14342df509884fd5
@@ -9,6 +9,7 @@ require 'azure'
9
9
  module VagrantPlugins
10
10
  module WinAzure
11
11
  class Config < Vagrant.plugin('2', :config)
12
+
12
13
  attr_accessor :mgmt_certificate
13
14
  attr_accessor :mgmt_endpoint
14
15
  attr_accessor :subscription_id
@@ -100,18 +101,16 @@ module VagrantPlugins
100
101
 
101
102
  @state_read_timeout = nil if @state_read_timeout == UNSET_VALUE
102
103
 
104
+ utils = Class.new.extend(Azure::Core::Utility)
105
+
103
106
  # This done due to a bug in Ruby SDK - it doesn't generate a storage
104
107
  # account name if add_role = true
105
108
  if @storage_acct_name.nil? || @storage_acct_name.empty?
106
- @storage_acct_name = Azure::Core::Utility.random_string(
107
- "#{@vm_name}storage"
108
- ).gsub(/[^0-9a-z ]/i, '').downcase[0..23]
109
+ @storage_acct_name = utils.random_string("#{@vm_name}storage").gsub(/[^0-9a-z ]/i, '').downcase[0..23]
109
110
  end
110
111
 
111
112
  if @cloud_service_name.nil? || @cloud_service_name.empty?
112
- @cloud_service_name = Azure::Core::Utility.random_string(
113
- "#{@vm_name}-service-"
114
- )
113
+ @cloud_service_name = utils.random_string("#{@vm_name}-service-")
115
114
  end
116
115
  end
117
116
 
@@ -6,6 +6,6 @@
6
6
 
7
7
  module VagrantPlugins
8
8
  module WinAzure
9
- VERSION = '1.2.0'
9
+ VERSION = '1.2.1'
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-azure
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - MSOpenTech