summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/sbin/bcfg2-repo-validate3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-repo-validate b/src/sbin/bcfg2-repo-validate
index 1c03a7c2b..5e22dcf75 100755
--- a/src/sbin/bcfg2-repo-validate
+++ b/src/sbin/bcfg2-repo-validate
@@ -130,12 +130,13 @@ if __name__ == '__main__':
for pkg in xdata.findall("//Package"):
if pkg.getparent().tag == 'Group':
grp = pkg.getparent().get('name')
- if grp.getparent().tag == 'Group':
+ if type(grp) is not str and grp.getparent().tag == 'Group':
pgrp = grp.getparent().get('name')
else:
pgrp = 'none'
else:
grp = 'none'
+ pgrp = 'none'
ptuple = (pkg.get('name'), priority, ptype, grp, pgrp)
# check if package is already listed with same priority,
# type, grp