vagrant-powerdns 0.1.2 → 0.1.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/lib/vagrant-powerdns/action.rb +3 -2
- data/lib/vagrant-powerdns/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a84f73045d0de48fadf6269e73e9bacf6cc4bc85
|
|
4
|
+
data.tar.gz: f70af2316504e9829acd92d6cc4c6276e451a9f3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c2b3d2219acb1bc69d9ea58e13a1362e31882f726e67357360853eaa3ee4bbda0d174d281a670c4114afc363c563c00d30bd8275a7ac0ffe420cf1f55fd6272b
|
|
7
|
+
data.tar.gz: 164724893991e6ef290a125a8a15e3f86e18c1b69b38045f8ba92f95ed63abb2f8c55941f88e3ddfdcf5cfd3795fc78c4e79d82dedbeea99747ff470793f89fd
|
|
@@ -97,6 +97,8 @@ module Vagrant
|
|
|
97
97
|
zone = @zone.name
|
|
98
98
|
# Get A record
|
|
99
99
|
record = p.zone(zone)["records"].find {|v| v["name"] == @domain}
|
|
100
|
+
# Get comments for this domain
|
|
101
|
+
comments = p.zone(zone)["comments"].select {|v| v["name"] == @domain}
|
|
100
102
|
|
|
101
103
|
# only disable if active
|
|
102
104
|
if !record.nil? and not record["disabled"]
|
|
@@ -109,11 +111,10 @@ module Vagrant
|
|
|
109
111
|
name: @domain,
|
|
110
112
|
type: "A"
|
|
111
113
|
}
|
|
112
|
-
comments = record["comments"].delete_if { |v| v["name"] != @domain }
|
|
113
114
|
comments << new_comment
|
|
114
115
|
|
|
115
116
|
# Get the old IP
|
|
116
|
-
ip = record["
|
|
117
|
+
ip = record["content"]
|
|
117
118
|
|
|
118
119
|
ret = p.disable_domain(domain: @domain, ip: ip, zone_id: zone,
|
|
119
120
|
comments: comments)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-powerdns
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sayid Munawar
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-04-
|
|
11
|
+
date: 2016-04-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|