vagrant-aws-dns-synchronous 0.2.6.2 → 0.2.6.3

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: 706131a47ea42131876f446e1bdf95ede1c52865
4
- data.tar.gz: 4133e0abf5e2536279c024d3d05ce6a400956fbd
3
+ metadata.gz: 024c33b7cc20b16b0e2b8b6c9944b41f25898fe0
4
+ data.tar.gz: 109400e5bf88d1a2168affa669afb3d4b8b58f38
5
5
  SHA512:
6
- metadata.gz: 516c283ceff6a4320b425b8bc49a1f389b361ccb1be22382672297f1db756a6ccb22ce1f93043cdce73334d0486642d287c563c795545fb77c20704e3a567ae4
7
- data.tar.gz: ebf694e26c677e28b99751c80a92766066b164b1d79196e9b14668df1c4c4d2fdb94ffba963393ee84c3fc96a6418ca962460dd9c393a15d9b1c743b4b4cc158
6
+ metadata.gz: 811f3310a1a367a3e5af1418498f3b6c536cb991505804f20f439713550e44a900535bf8073e3bbd95824846fa534854f6ce5bd04663a93702a7ed43129d194d
7
+ data.tar.gz: e2a013524262520157fcc0fed9d7dc9d9c27c2bf1d694fa0cd6469b30803e4c438872b0f158199e1493db76754826a7450a72d05c1a35a7631275d69b9ff1a6b
@@ -44,26 +44,31 @@ module VagrantPlugins
44
44
  private
45
45
 
46
46
  def change_record(hosted_zone_id, record, type, value, action='CREATE')
47
- @route53.change_resource_record_sets({
48
- hosted_zone_id: hosted_zone_id, # required
49
- change_batch: {
50
- changes: [
51
- {
52
- action: action, # required, accepts CREATE, DELETE, UPSERT
53
- resource_record_set: {
54
- name: record, # required
55
- type: type, # required, accepts SOA, A, TXT, NS, CNAME, MX, PTR, SRV, SPF, AAAA
56
- ttl: 1,
57
- resource_records: [
58
- {
59
- value: value # required
60
- }
61
- ]
47
+ begin
48
+ @route53.change_resource_record_sets({
49
+ hosted_zone_id: hosted_zone_id, # required
50
+ change_batch: {
51
+ changes: [
52
+ {
53
+ action: action, # required, accepts CREATE, DELETE, UPSERT
54
+ resource_record_set: {
55
+ name: record, # required
56
+ type: type, # required, accepts SOA, A, TXT, NS, CNAME, MX, PTR, SRV, SPF, AAAA
57
+ ttl: 1,
58
+ resource_records: [
59
+ {
60
+ value: value # required
61
+ }
62
+ ]
63
+ }
62
64
  }
63
- }
64
- ]
65
- }
66
- })
65
+ ]
66
+ }
67
+ })
68
+ rescue PriorRequestNotComplete => e
69
+ sleep 1
70
+ retry
71
+ end
67
72
  end
68
73
 
69
74
  def wait_for_change(change_response)
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module AwsDns
3
- VERSION = "0.2.6.2"
3
+ VERSION = "0.2.6.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-aws-dns-synchronous
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6.2
4
+ version: 0.2.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nassim Kacha
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-27 00:00:00.000000000 Z
11
+ date: 2017-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk