Commit Graph

6 Commits (9b48f8b50deb1669de84dface9946bc73ad3faa6)

Author SHA1 Message Date
Toshio Kuratomi 16bd2c7357 be explicit about urllib import and remove conditional urllib(2) import
urllib and urllib2 have been in the python stdlib since at least
python-2.3.  There's no reason to conditionalize it.

Fixes https://github.com/ansible/ansible/issues/11322
2016-12-08 11:32:52 -05:00
Matthew Landauer 4f0843e10b Handle MX,NS,TXT records correctly and don't assume one record type per name 2016-12-08 11:32:46 -05:00
Matthew Landauer 03f92abf8c If record_name="" write empty value to dns made easy
This is necessary for instance when setting MX records on the root of a domain.
This is different than leaving record_name out completely which has the same
behaviour as before
2016-12-08 11:32:46 -05:00
Matthew Landauer b79806d5d4 If record_value="" write empty value to dns made easy
This is necessary for instance when setting CNAMEs that point to the root
of the domain. This is different than leaving record_value out completely
which has the same behaviour as before
2016-12-08 11:32:46 -05:00
Matthew Landauer 1f09e32baa Fix display of error message
It was crashing due to "domain" variable not being defined
2016-12-08 11:32:46 -05:00
Michael DeHaan ee87304fb8 Fix rename error. 2016-12-08 11:32:19 -05:00