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
Add aliyun ecs instance join leave security group #992
Add aliyun ecs instance join leave security group #992
Conversation
+10086 |
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.
Thanks for the contribution, please follow the changes requested in the code review.
libcloud/compute/drivers/ecs.py
Outdated
if group_id is None: | ||
raise AttributeError('group_id is required') | ||
|
||
if (node.state != NodeState.RUNNING) and \ |
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.
no parentheses in Python :-) please use a more Pythonic evaluation statement.
libcloud/compute/drivers/ecs.py
Outdated
:type node: :class:`Node` | ||
|
||
:param group_id: security group id. | ||
:type ex_filters: ``str`` |
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.
this should be :type group_id:
libcloud/compute/drivers/ecs.py
Outdated
if group_id is None: | ||
raise AttributeError('group_id is required') | ||
|
||
if (node.state != NodeState.RUNNING) and \ |
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.
again, no parens in Python
libcloud/compute/drivers/ecs.py
Outdated
:type node: :class:`Node` | ||
|
||
:param group_id: security group id. | ||
:type ex_filters: ``str`` |
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.
this docstring title is wrong, it should be :type group_id
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.
OK, Thank you, I will fix it
fix doc
fix doc
fix for code review
thanks, merging. |
this is merged. I don't know why this is still here. |
Add aliyun ecs instance join leave security group
Description
When I use libcloud in my project, I need use function about "Join/Leave Security Group" for Aliyun ECS instance. But I can not find it in libcloud. That's why I make this pull request.
Two functions are added: join_security_group/leave_security_group
Status
Checklist (tick everything that applies)