From cae3270a946df31e6861a19bf352840749f7e03d Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Tue, 29 Oct 2013 11:06:34 +0000 Subject: [PATCH] Remove unused expected_sub_attrs A leftover from a previous revision of the SecurityGroupRule object and is now unused. Change-Id: I21742e23fbd6477bd3d246d64124bbb571b40f94 --- nova/objects/security_group_rule.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nova/objects/security_group_rule.py b/nova/objects/security_group_rule.py index eb76fdd0253a..c37935f93098 100644 --- a/nova/objects/security_group_rule.py +++ b/nova/objects/security_group_rule.py @@ -42,12 +42,9 @@ class SecurityGroupRule(base.NovaPersistentObject, base.NovaObject): context, security_group.SecurityGroup(), db_group) @staticmethod - def _from_db_object(context, rule, db_rule, expected_attrs=None, - expected_sub_attrs=None): + def _from_db_object(context, rule, db_rule, expected_attrs=None): if expected_attrs is None: expected_attrs = [] - if expected_sub_attrs is None: - expected_sub_attrs = {} for field in rule.fields: if field in expected_attrs: rule[field] = rule._from_db_subgroup(context, db_rule[field])