macfreek opened a new issue #1520:
URL: https://github.com/apache/libcloud/issues/1520
## Summary
[libcloud/dns/drivers/hostvirtual.py](libcloud/dns/drivers/hostvirtual.py#L65)
and [libcloud/dns/drivers/godaddy.py](libcloud/dns/drivers/godaddy.py#L111)
both contain the following definition:
```
RECORD_TYPE_MAP = {
RecordType.A: 'A',
RecordType.AAAA: 'AAAA',
RecordType.CNAME: 'CNAME',
RecordType.MX: 'MX',
RecordType.NS: 'SPF',
RecordType.SRV: 'SRV',
RecordType.TXT: 'TXT',
}
```
The line `RecordType.NS: 'SPF',` is very unusual. This is only two of three
places in the libcloud/driver library where there is a mismatch between record
type and name. (The other is cloudflare.py, which defines `RecordType.URL:
'LOC'`). I suspect this is a bug.
If it is really not a bug, I suggest to add a comment explaining this
mismatch.
My apologies for not adding a full bug report with reproducible code. I
encountered this during a coarse check which record types are commonly
supported.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]