GitHub user net613 opened a pull request:
https://github.com/apache/libcloud/pull/994
fix AliyunXmlResponse MalformedResponseError for SLB
## fix AliyunXmlResponse MalformedResponseError for SLB
### Description
When I run the example_loadbalancer.py, it encounters an
malformedResponseError for Aliyun CreateLoadBalancer response. But when you
login in Aliyun SLB, you would found that the instance has been created .
-------------------------------
cls = get_driver(Provider.ALIYUN_SLB)
driver = cls('username', 'api key', region='ord')
# creating a balancer which balances traffic across two
# nodes: 192.168.86.1:80 and 192.168.86.2:8080. Balancer
# itself listens on port 80/tcp
new_balancer_name = 'testlb' + os.urandom(4).encode('hex')
members = (Member(None, '192.168.86.1', 80),
Member(None, '192.168.86.2', 8080))
new_balancer = driver.create_balancer(name=new_balancer_name,
algorithm=Algorithm.ROUND_ROBIN,
port=80,
protocol='http',
members=members)
---------------------------------------------------------------------------------------
### Status
Replace this: describe the PR status. Examples:
- work in progress
- done, ready for review
### Checklist (tick everything that applies)
- [ ] [Code
linting](http://libcloud.readthedocs.org/en/latest/development.html#code-style-guide)
(required, can be done after the PR checks)
- [ ] Documentation
- [ ] [Tests](http://libcloud.readthedocs.org/en/latest/testing.html)
- [ ]
[ICLA](http://libcloud.readthedocs.org/en/latest/development.html#contributing-bigger-changes)
(required for bigger changes)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/net613/libcloud MalformedResponseError
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/libcloud/pull/994.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #994
----
commit 115b8e67d3d9279b7bde7fe17c28b72139221507
Author: netgenius <[email protected]>
Date: 2017-02-27T13:33:24Z
fix AliyunXmlResponse MalformedResponseError for SLB
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---