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 +4 -4
- data/lib/vagrant-azure/config.rb +5 -6
- data/lib/vagrant-azure/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6988e9e6d5fd8d3f47e6388ba6d29de2e24859c5
|
|
4
|
+
data.tar.gz: 9c7a6571ee284d5adf5060b7dfa8de439a2bce55
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a6fc94b5099e9e693fda510f0444823cffe584e8f9891da5ca51f6833653e67fc0824c1fb1e6f71ce42d91516878897686a35a4032e17f8d3af2ae11d02a45f9
|
|
7
|
+
data.tar.gz: 09a6e2436f4dbb220b57cd7daab62b64429e7e76a6dd1ed0781b9366510512dc93bc47e38ebffcd2f2927e3f50dbdf2b84ab1d898731bbcd14342df509884fd5
|
data/lib/vagrant-azure/config.rb
CHANGED
|
@@ -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 =
|
|
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 =
|
|
113
|
-
"#{@vm_name}-service-"
|
|
114
|
-
)
|
|
113
|
+
@cloud_service_name = utils.random_string("#{@vm_name}-service-")
|
|
115
114
|
end
|
|
116
115
|
end
|
|
117
116
|
|