diff options
author | Rob Austein <sra@hactrn.net> | 2009-09-20 05:35:44 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2009-09-20 05:35:44 +0000 |
commit | 4d163f646207005fd51878e66b4af39b9a113880 (patch) | |
tree | 85f28bcf49fd25fc878d2a556fc38b4ead4457e2 /rpkid | |
parent | f95f3f1a54cbb484a7cb1529ba7b2224c10e3699 (diff) |
Helps to look in for the _id in the right object
svn path=/rpkid/rpki/left_right.py; revision=2780
Diffstat (limited to 'rpkid')
-rw-r--r-- | rpkid/rpki/left_right.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpkid/rpki/left_right.py b/rpkid/rpki/left_right.py index 4c6d8cbd..d25a962a 100644 --- a/rpkid/rpki/left_right.py +++ b/rpkid/rpki/left_right.py @@ -76,7 +76,7 @@ class data_elt(rpki.xml_utils.data_elt, rpki.sql.sql_persistent, left_right_name handle_name = tag + "_handle" if getattr(r_pdu, handle_name, None) is None: try: - setattr(r_pdu, handle_name, getattr(elt.sql_fetch(self.gctx, getattr(self, id_name)), handle_name)) + setattr(r_pdu, handle_name, getattr(elt.sql_fetch(self.gctx, getattr(r_pdu, id_name)), handle_name)) except AttributeError: continue |