diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-02-18 09:03:27 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-02-18 09:03:27 +0000 |
| commit | bb153b705a14c2fbf9b3a0936f8a7ca4c56895e3 (patch) | |
| tree | a22e15cedb191346286f8c0cd01f93a65d63dabb /openstackclient/compute | |
| parent | 272ac55776dcc945cdad3d6d38e3356e0c099e45 (diff) | |
| parent | a29c9732d7434902fd36e0417e16bb760875591f (diff) | |
| download | python-openstackclient-bb153b705a14c2fbf9b3a0936f8a7ca4c56895e3.tar.gz | |
Merge "Refactor security group rule delete to use SDK"
Diffstat (limited to 'openstackclient/compute')
| -rw-r--r-- | openstackclient/compute/v2/security_group.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/openstackclient/compute/v2/security_group.py b/openstackclient/compute/v2/security_group.py index 2a8908d7..6f2e1a52 100644 --- a/openstackclient/compute/v2/security_group.py +++ b/openstackclient/compute/v2/security_group.py @@ -169,24 +169,6 @@ class CreateSecurityGroupRule(command.ShowOne): return zip(*sorted(six.iteritems(info))) -class DeleteSecurityGroupRule(command.Command): - """Delete a security group rule""" - - def get_parser(self, prog_name): - parser = super(DeleteSecurityGroupRule, self).get_parser(prog_name) - parser.add_argument( - 'rule', - metavar='<rule>', - help='Security group rule to delete (ID only)', - ) - return parser - - def take_action(self, parsed_args): - - compute_client = self.app.client_manager.compute - compute_client.security_group_rules.delete(parsed_args.rule) - - class ListSecurityGroup(command.Lister): """List security groups""" |
