Skip to content

Commit 6edf505

Browse files
Added fqdn to the record set options (#78)
* added fqdn to record set * Bump version: 0.9.6 -> 0.10.0 [ci skip] --------- Co-authored-by: Arpit Shah <[email protected]>
1 parent 95d2418 commit 6edf505

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/vinyldns/record.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def from_dict(d):
180180

181181
class RecordSet(object):
182182
def __init__(self, zone_id, name, type, ttl, status=None, created=None,
183-
updated=None, records=[], id=None, owner_group_id=None):
183+
updated=None, records=[], id=None, owner_group_id=None,fqdn=None):
184184
self.zone_id = zone_id
185185
self.name = name
186186
self.type = type
@@ -191,6 +191,7 @@ def __init__(self, zone_id, name, type, ttl, status=None, created=None,
191191
self.records = records
192192
self.id = id
193193
self.owner_group_id = owner_group_id
194+
self.fqdn=fqdn
194195

195196
@staticmethod
196197
def from_dict(d):
@@ -204,7 +205,8 @@ def from_dict(d):
204205
updated=d.get('updated'),
205206
records=[rdata_converters[d['type']](rd) for rd in d.get('records', [])],
206207
id=d.get('id'),
207-
owner_group_id=d.get('ownerGroupId')
208+
owner_group_id=d.get('ownerGroupId'),
209+
fqdn=d.get('fqdn')
208210
)
209211

210212

0 commit comments

Comments
 (0)