rebase Closes #800
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/3c5388a3 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/3c5388a3 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/3c5388a3 Branch: refs/heads/trunk Commit: 3c5388a318ff7443ea41f2df86b5248d7078246a Parents: 2583d62 Author: netgenius <[email protected]> Authored: Fri Jun 10 15:50:11 2016 +0800 Committer: Tomaz Muraus <[email protected]> Committed: Fri Jun 10 12:48:04 2016 +0200 ---------------------------------------------------------------------- libcloud/compute/drivers/ecs.py | 39 ------------------------------------ 1 file changed, 39 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/3c5388a3/libcloud/compute/drivers/ecs.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/ecs.py b/libcloud/compute/drivers/ecs.py index 63d54d5..2ac8afa 100644 --- a/libcloud/compute/drivers/ecs.py +++ b/libcloud/compute/drivers/ecs.py @@ -768,45 +768,6 @@ class ECSDriver(NodeDriver): return resp.success() and \ self._wait_until_state([node], NodeState.STOPPED) - def ex_create_security_groups(self, ex_description=None, - ex_client_token=None): - """ - Create a new security groups. - - :keyword ex_description: volume description - :type ex_description: ``unicode`` - - :keyword ex_client_token: a token generated by client to identify - each request. - :type ex_client_token: ``str`` - """ - params = {'Action': 'CreateSecurityGroup', - 'RegionId': self.region} - - if ex_description: - params['Description'] = ex_description - if ex_client_token: - params['ClientToken'] = ex_client_token - resp = self.connection.request(self.path, params).object - return findtext(resp, 'SecurityGroupId', namespace=self.namespace) - - def ex_delete_security_groups(self, ex_security_group_id=None): - """ - Create a new security groups. - - :keyword ex_description: volume description - :type ex_description: ``unicode`` - - :keyword ex_client_token: a token generated by client to identify - each request. - :type ex_client_token: ``str`` - """ - params = {'Action': 'DeleteSecurityGroup', - 'RegionId': self.region, - 'SecurityGroupId': ex_security_group_id} - resp = self.connection.request(self.path, params) - return resp.success() - def ex_list_security_groups(self, ex_filters=None): """ List security groups in the current region.
