diff options
author | Holger Weiß <holger@zedat.fu-berlin.de> | 2011-05-01 23:50:09 +0200 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2011-06-14 12:36:44 -0500 |
commit | 5952ca5ebf0908b29e2fb09091249dc6ce67540b (patch) | |
tree | 836f7e075b024bcf849d878f64cf04c335653f72 | |
parent | c7f6cb353df45bb3662b78a49815a6b1a54a7f88 (diff) | |
download | bcfg2-5952ca5ebf0908b29e2fb09091249dc6ce67540b.tar.gz bcfg2-5952ca5ebf0908b29e2fb09091249dc6ce67540b.tar.bz2 bcfg2-5952ca5ebf0908b29e2fb09091249dc6ce67540b.zip |
Fix bcfg2-reports --badentry and --extraentry
The reporting system schema has been changed. This change lead to
exceptions such as
| AttributeError: 'Entries_interactions' object has no attribute 'name'
when running bcfg2-reports with the --badentry or --extraentry options.
-rwxr-xr-x | src/sbin/bcfg2-reports | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sbin/bcfg2-reports b/src/sbin/bcfg2-reports index 20288fc5e..33a291395 100755 --- a/src/sbin/bcfg2-reports +++ b/src/sbin/bcfg2-reports @@ -233,7 +233,7 @@ else: for c_inst in c_list: baditems = c_inst.current_interaction.bad() for item in baditems: - if item.name == badentry[1] and item.kind == badentry[0]: + if item.entry.name == badentry[1] and item.entry.kind == badentry[0]: result.append(c_inst) if c_inst in entrydict: entrydict.get(c_inst).append(badentry[1]) @@ -244,7 +244,7 @@ else: for c_inst in c_list: baditems = c_inst.current_interaction.bad() for item in baditems: - if item.name == badentry[1] and item.kind == badentry[0]: + if item.entry.name == badentry[1] and item.entry.kind == badentry[0]: result.append(c_inst) break elif extraentry != "": @@ -255,7 +255,7 @@ else: for c_inst in c_list: extraitems = c_inst.current_interaction.extra() for item in extraitems: - if item.name == extraentry[1] and item.kind == extraentry[0]: + if item.entry.name == extraentry[1] and item.entry.kind == extraentry[0]: result.append(c_inst) if c_inst in entrydict: entrydict.get(c_inst).append(extraentry[1]) @@ -266,7 +266,7 @@ else: for c_inst in c_list: extraitems = c_inst.current_interaction.extra() for item in extraitems: - if item.name == extraentry[1] and item.kind == extraentry[0]: + if item.entry.name == extraentry[1] and item.entry.kind == extraentry[0]: result.append(c_inst) break |