Skip to content

Commit

Permalink
Merge pull request #115 from ChrisArgyle/fix_fqdn_get_all_httpredirect
Browse files Browse the repository at this point in the history
Fix incorrect FQDN returned by Zone.get_all_httpredirect()
  • Loading branch information
Northover committed Jul 31, 2017
2 parents 85ccf44 + 7828bf8 commit 5662e79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dyn/tm/zones.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,10 +635,11 @@ def get_all_httpredirect(self):
response = DynectSession.get_session().execute(uri, 'GET', api_args)
httpredirs = []
for httpredir in response['data']:
fqdn = httpredir['fqdn']
del httpredir['zone']
del httpredir['fqdn']
httpredirs.append(
HTTPRedirect(self._name, self._fqdn, api=False, **httpredir))
HTTPRedirect(self._name, fqdn, api=False, **httpredir))
return httpredirs

def get_all_advanced_redirect(self):
Expand Down

0 comments on commit 5662e79

Please sign in to comment.