Fix null value in DigitalOcean create record
This fixes "field could not be unmarshalled" error when trying to send
'null' as a boolean value. It needs to be int or bool, not a string.
Ref:
@@ -171,15 +171,15 @@ class DigitalOceanDNSDriver(DigitalOcean_v2_BaseDriver, DNSDriver):
try:
params['priority'] = extra['priority']
except KeyError:
- params['priority'] = 'null'
+ params['priority'] = None
try:
params['port'] = extra['port']
except KeyError:
- params['port'] = 'null'
+ params['port'] = None
try:
params['weight'] = extra['weight']
except KeyError:
- params['weight'] = 'null'
+ params['weight'] = None
if 'ttl' in extra:
params['ttl'] = extra['ttl']
