azure-armrest 0.7.2 → 0.7.3
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/CHANGES +7 -0
- data/lib/azure/armrest/model/storage_account.rb +7 -1
- data/lib/azure/armrest/storage_account_service.rb +9 -1
- data/lib/azure/armrest/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74bb8a3af14d347ed47d16bfedd8d610ee487289
|
4
|
+
data.tar.gz: 99bc7c02d7a5bf8d5972f3551a2629f212bd9ae7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3fb8f96855a6d11893fe8be0b44db591b2aea35197d8c1e303c01769c124fbd55719844b575eebad50aff32d489a727b332aa4a230e6fdb36664edbde4d78d3
|
7
|
+
data.tar.gz: 45da2361f44891bd3919954d89e4a58981aac02f08c1f4a8541fe31cfc23e3f96151a3e59e5fa9c076fe68f74f85a16c93669515fabaa89fae863a79ba3e5c80
|
data/CHANGES
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
= 0.7.3 - 11-May-2017
|
2
|
+
* Added guards against ECONNREFUSED and TimeoutException for the
|
3
|
+
StorageAccountService#get_private_images and StorageAccount#all_blobs
|
4
|
+
methods. These errors are sporadic and could cause some of our inner
|
5
|
+
looping methods to fail. Consequently, they are now just logged with
|
6
|
+
a warning and skipped.
|
7
|
+
|
1
8
|
= 0.7.2 - 26-Apr-2017
|
2
9
|
* Added the Storage::DiskService#get_blob_raw method. This is similar to the
|
3
10
|
StorageAccount#get_blob_raw method, but works for managed disks.
|
@@ -274,7 +274,13 @@ module Azure
|
|
274
274
|
mutex = Mutex.new
|
275
275
|
|
276
276
|
Parallel.each(containers(key), :in_threads => max_threads) do |container|
|
277
|
-
|
277
|
+
begin
|
278
|
+
mutex.synchronize { array.concat(blobs(container.name, key)) }
|
279
|
+
rescue Errno::ECONNREFUSED, Azure::Armrest::TimeoutException => err
|
280
|
+
msg "Unable to gather blob information for #{container.name}: #{err}"
|
281
|
+
log('warn', msg)
|
282
|
+
next
|
283
|
+
end
|
278
284
|
end
|
279
285
|
|
280
286
|
array
|
@@ -292,7 +292,15 @@ module Azure
|
|
292
292
|
next unless File.extname(blob.name).casecmp('.vhd') == 0
|
293
293
|
next unless blob.properties.lease_state.casecmp('available') == 0
|
294
294
|
|
295
|
-
|
295
|
+
# In rare cases the endpoint will be unreachable. Warn and move on.
|
296
|
+
begin
|
297
|
+
blob_properties = storage_account.blob_properties(blob.container, blob.name, key)
|
298
|
+
rescue Errno::ECONNREFUSED, Azure::Armrest::TimeoutException => err
|
299
|
+
msg = "Unable to collect blob properties for #{blob.name}/#{blob.container}: #{err}"
|
300
|
+
log('warn', msg)
|
301
|
+
next
|
302
|
+
end
|
303
|
+
|
296
304
|
next unless blob_properties.respond_to?(:x_ms_meta_microsoftazurecompute_osstate)
|
297
305
|
next unless blob_properties.x_ms_meta_microsoftazurecompute_osstate.casecmp('generalized') == 0
|
298
306
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure-armrest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2017-
|
14
|
+
date: 2017-05-11 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: json
|
@@ -299,7 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
299
299
|
version: '0'
|
300
300
|
requirements: []
|
301
301
|
rubyforge_project:
|
302
|
-
rubygems_version: 2.
|
302
|
+
rubygems_version: 2.5.2
|
303
303
|
signing_key:
|
304
304
|
specification_version: 4
|
305
305
|
summary: An interface for ARM/JSON Azure REST API
|