Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
linux python3.5 pip version of libcloud
Description
create_record is not compatible with the powerdns 4.0 rest api.
the code creates the json as follow:
record =
{ 'content': data, 'disabled': False, 'name': name, 'ttl': extra['ttl'], 'type': type, }payload = {'rrsets': [
{'name': name, 'type': type, 'changetype': 'REPLACE', 'records': [record] }]
}
Instead the portocol wants:
{ "rrsets":
[
{
"name": <string>,
"type": <string>,
"ttl": <int>,
"changetype": <changetype>,
"records":
[
, ...
],
"comments":
[
, ...
]
},
]
}
I'll manage to modify the method and to add also comment parameter.
Christian