summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSol Jerome <solj+dev@soljerome.com>2011-05-13 05:41:44 -0700
committerSol Jerome <solj+dev@soljerome.com>2011-05-13 05:41:44 -0700
commit7e61aa94278b9983c2cb321524e90e38c143475c (patch)
tree04ec04d2d68604f20df73f88b430e57076967ea4
parentea8cfddc7a5f494efde34092ccc2cd6880d2009a (diff)
parentb8b7e45c83df9f5951dd8faeb83347d920942cef (diff)
downloadbcfg2-7e61aa94278b9983c2cb321524e90e38c143475c.tar.gz
bcfg2-7e61aa94278b9983c2cb321524e90e38c143475c.tar.bz2
bcfg2-7e61aa94278b9983c2cb321524e90e38c143475c.zip
Merge pull request #32 from weiss/fix-reports-schema
Fix bcfg2-reports --badentry and --extraentry
-rwxr-xr-xsrc/sbin/bcfg2-reports8
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