Skip to content

Commit

Permalink
Merge pull request #109 from Marchowes/bugfixesSprint22
Browse files Browse the repository at this point in the history
Bugfixes sprint22
  • Loading branch information
Marchowes committed Oct 31, 2016
2 parents 89c6f3c + d16eb66 commit 140a702
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Release History
---------------
1.7.8 (2016-10-31)
*Minor Bugfixes to ExtNameServer.
*Advanced Redirect SDK calls (Beta)

1.7.7 (2016-10-20)
++++++++++++++++++
Expand Down
2 changes: 1 addition & 1 deletion dyn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Requires Python 2.6 or higher, or the "simplejson" package.
"""
version_info = (1, 7, 7)
version_info = (1, 7, 8)
__name__ = 'dyn'
__doc__ = 'A python wrapper for the DynDNS and DynEmail APIs'
__author__ = 'Jonathan Nappi, Cole Tuininga, Marc Howes, Philip Andrews'
Expand Down
11 changes: 4 additions & 7 deletions dyn/tm/zones.py
Original file line number Diff line number Diff line change
Expand Up @@ -1310,8 +1310,7 @@ def hosts(self):
:class:`ExternalNameserver` hosts. list of ExternalNameserverEntries
"""
self._get()
return [ExternalNameserverEntry(host['address'], host['notifies'])
for host in self._hosts]
return self._hosts

@hosts.setter
def hosts(self, value):
Expand Down Expand Up @@ -1364,17 +1363,15 @@ def __init__(self, address, *args, **kwargs):
"""
self._address = address
self._notifies = kwargs.get('notifies', None)
self._notifies = kwargs.get('notifies')

@property
def _json(self):
"""Get the JSON representation of this :class:`ExternalNameserverEntry`
object
"""
json_blob = {'address': self._address,
'notifies': self._notifies,
}
return {x: json_blob[x] for x in json_blob if json_blob[x] is not None}
json_blob = {'address': self._address, 'notifies': self._notifies}
return {k: v for k, v in json_blob.items() if v is not None}

@property
def address(self):
Expand Down

0 comments on commit 140a702

Please sign in to comment.