GitHub user net613 opened a pull request:
https://github.com/apache/libcloud/pull/810
Aliyun ecs: Add support for creating security group
### Description
Currently for Aliyun ECS, if you did not create a security group through
web browser, you would encounter 'list index out of range' error when running
example_aliyun_ecs.py to create a VM instance.
==========================
Found 0 security groups
Traceback (most recent call last):
File "example_aliyun_ecs.py", line 54, in <module>
sg = sgs[0]
IndexError: list index out of range
==========================
So I add the ex_create_security_group function in ecs.py to solve it.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/net613/libcloud trunk
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/libcloud/pull/810.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 #810
----
commit 2f64a12789284287f50df980afd26940f0bdf691
Author: netgenius <[email protected]>
Date: 2016-06-10T16:15:58Z
Aliyun ecs: Add support for creating security group
----
---
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.
---