summaryrefslogtreecommitdiff
path: root/openstackclient/compute
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-02-03 21:01:31 +0000
committerGerrit Code Review <review@openstack.org>2016-02-03 21:01:31 +0000
commit7903e53971e916e9bdaf613e8a0a9dce180d04a2 (patch)
treecdbfaa3b978ce47532db07e83a6477100eb5c9d0 /openstackclient/compute
parent3763d75dbad477ad654daec321c0291550152873 (diff)
parent580b0aff8810f234adcf364b0fe151b6e3c58182 (diff)
downloadpython-openstackclient-7903e53971e916e9bdaf613e8a0a9dce180d04a2.tar.gz
Merge "Refactor security group delete to use SDK"
Diffstat (limited to 'openstackclient/compute')
-rw-r--r--openstackclient/compute/v2/security_group.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/openstackclient/compute/v2/security_group.py b/openstackclient/compute/v2/security_group.py
index b975a505..2a8908d7 100644
--- a/openstackclient/compute/v2/security_group.py
+++ b/openstackclient/compute/v2/security_group.py
@@ -169,28 +169,6 @@ class CreateSecurityGroupRule(command.ShowOne):
return zip(*sorted(six.iteritems(info)))
-class DeleteSecurityGroup(command.Command):
- """Delete a security group"""
-
- def get_parser(self, prog_name):
- parser = super(DeleteSecurityGroup, self).get_parser(prog_name)
- parser.add_argument(
- 'group',
- metavar='<group>',
- help='Security group to delete (name or ID)',
- )
- return parser
-
- def take_action(self, parsed_args):
-
- compute_client = self.app.client_manager.compute
- data = utils.find_resource(
- compute_client.security_groups,
- parsed_args.group,
- )
- compute_client.security_groups.delete(data.id)
-
-
class DeleteSecurityGroupRule(command.Command):
"""Delete a security group rule"""