ms_rest_azure 0.10.6 → 0.10.7

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: fc9e82b18a98289c1c3678e0536092f142f96ab0
4
- data.tar.gz: d686434d385b87efecc73d6aa8152332c05b2c9f
3
+ metadata.gz: bdf93a3e6f7a36e07e35fbc3e5808d9bd067c77d
4
+ data.tar.gz: f525980367e966e6ec309ce4253e1548ab6b9b07
5
5
  SHA512:
6
- metadata.gz: b041c4012f00421c8e40143f35dfe4326c54638ac454508bcf80f5481157669714b883736a766d7bd1d63addcca308a0831b3bf251f21f2ce1313a3ea75547ed
7
- data.tar.gz: 3fe5581461bb072dfdd5a09fc3eaea27b0f3e94246d45f7e3f60ada1f801bed053d751be98ba04c0c60d102416d46e58f02b228ca5498449b8c9f831e4483135
6
+ metadata.gz: 213bb4d51ea940ec75e17ca2d6f25b3ff77760559654bc970fcf17f08ddbfa05f04e04ab9ed30791478410cdfc0b80d5f2621e2a7cf9cd71883b89f5fa9ef933
7
+ data.tar.gz: 47118ca3c8332e015f8c1b484ae7358f2424b0f6ab8b74e3157db668ec2516d86fb81d1d7d897e85ac38f1b41c55a192228632511fcafe4a5d8edf0662ad101b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ##2018.05.16 ms_rest_azure version 0.10.7
2
+ * Added new error code 410 for IMDS Support for MSI Token Provider class.
3
+
1
4
  ##2018.04.16 ms_rest_azure version 0.10.6
2
5
  * Added encoding of client id, object id and msi_id in the MSI Token provider class. Refer[PR #1288](https://github.com/Azure/azure-sdk-for-ruby/pull/1288) for further details.
3
6
 
@@ -118,12 +118,16 @@ module MsRestAzure
118
118
  request.headers['User-Agent'] = "Azure-SDK-For-Ruby/ms_rest_azure/#{MsRestAzure::VERSION}"
119
119
  end
120
120
 
121
- if response.status == 429 || response.status == 404 || (response.status > 499 && response.status < 600)
121
+ if response.status == 410 || response.status == 429 || response.status == 404 || (response.status > 499 && response.status < 600)
122
122
  puts slots.inspect
123
123
  wait = slots[0..retry_value].sample
124
124
  wait = wait < 1 ? 3 : wait
125
- sleep(wait)
125
+ wait = (response.status == 410 && wait < 70) ? 70 : wait
126
126
  retry_value += 1
127
+ if (retry_value > max_retry)
128
+ break
129
+ end
130
+ sleep(wait)
127
131
  elsif response.status != 200
128
132
  fail AzureOperationError, "Couldn't acquire access token from Managed Service Identity, please verify your tenant id, port and settings"
129
133
  else
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module MsRestAzure
6
- VERSION = '0.10.6'
6
+ VERSION = '0.10.7'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ms_rest_azure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.6
4
+ version: 0.10.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-16 00:00:00.000000000 Z
11
+ date: 2018-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -142,7 +142,7 @@ metadata:
142
142
  changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/runtime/ms_rest_azure/CHANGELOG.md
143
143
  documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
144
144
  homepage_uri: https://aka.ms/azure-sdk-for-ruby
145
- source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/ms_rest_azure-v0.10.6
145
+ source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/ms_rest_azure-v0.10.7
146
146
  post_install_message:
147
147
  rdoc_options: []
148
148
  require_paths: