-
Notifications
You must be signed in to change notification settings - Fork 926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[LIBCLOUD-748] Add Durable DNS provider implementation #588
[LIBCLOUD-748] Add Durable DNS provider implementation #588
Conversation
abe971d
to
2b6c2da
Compare
I couldn't get why happen the error that travis is showing. I got that error sometimes in my local enviorenment but if i run it with the docker container, everything goes well. Any clue? |
2b6c2da
to
eede464
Compare
Thanks! Will have a look. |
It looks like issue is related to missing BeatifulSoup module: (libcloud-trunk)kami ~/w/lc/libcloud (git:LIBCLOUD-748_durabledns_provider)$ PYTHONPATH=. python libcloud/test/dns/test_durabledns.py
Traceback (most recent call last):
File "libcloud/test/dns/test_durabledns.py", line 28, in <module>
from libcloud.dns.drivers.durabledns import DurableDNSDriver
File "/home/kami/w/lc/libcloud/libcloud/dns/drivers/durabledns.py", line 26, in <module>
from libcloud.common.durabledns import DurableConnection, DurableResponse
File "/home/kami/w/lc/libcloud/libcloud/common/durabledns.py", line 16, in <module>
from bs4 import BeautifulSoup
ImportError: No module named bs4 Can you please use On a related note - I also need to have a look and improve |
I've pushed a change so it will be easier to identify issues like this in the future - 011d16c |
API_HOST = 'durabledns.com' | ||
|
||
# REQUEST SCHEMAS | ||
LIST_ZONES = """ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use ElementTree
module to construct XML documents (see EC2, S3 and other XML based drivers for an example).
Creating XML by manually concatenating strings is not safe nor robust.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright. Noted, 👍
b4bb650
to
54b428d
Compare
for attribute in attributes: | ||
ET.SubElement(urn, 'urn:%s:%s' % (urn_nid, attribute)) | ||
return soap | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made this builder for the xml schemas.
54b428d
to
674299f
Compare
I did i bunch of changes. I believe is ready for rock and roll! Thanks a lot! |
4121c0a
to
9894b85
Compare
9894b85
to
aa4661c
Compare
Merged, thanks! |
Ok. Last one. Thanks again :).