From 7f02817c043283f457ea36704163c64ba081621c Mon Sep 17 00:00:00 2001 From: Richard Theis Date: Tue, 24 Nov 2015 16:05:56 -0600 Subject: [PATCH] find_security_group_rule does not find by name The find_security_group_rule proxy documents that a security group rule can be found by name or ID. However, security group rules do not have names. This patch set corrects the documentation. Change-Id: I06f324ace50c2ce377263727e6a6bed6e4128c93 Closes-Bug: #1464362 --- openstack/network/v2/_proxy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openstack/network/v2/_proxy.py b/openstack/network/v2/_proxy.py index 9b93ef5d..cd4a47b9 100644 --- a/openstack/network/v2/_proxy.py +++ b/openstack/network/v2/_proxy.py @@ -1150,10 +1150,10 @@ class Proxy(proxy.BaseProxy): self._delete(security_group_rule.SecurityGroupRule, value, ignore_missing=ignore_missing) - def find_security_group_rule(self, name_or_id, ignore_missing=True): + def find_security_group_rule(self, value, ignore_missing=True): """Find a single security group rule - :param name_or_id: The name or ID of a security group rule. + :param value: The ID of a security group rule. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the resource does not exist. @@ -1163,7 +1163,7 @@ class Proxy(proxy.BaseProxy): SecurityGroupRule` or None """ return self._find(security_group_rule.SecurityGroupRule, - name_or_id, ignore_missing=ignore_missing) + value, ignore_missing=ignore_missing) def get_security_group_rule(self, value): """Get a single security group rule