From 85f12bd9221b92730ef72f9cc233f2f1115d7a93 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Mon, 13 Sep 2010 18:04:51 +0000 Subject: bcfg2-repo-validate: Patch from Joe Digilio to fix tb in Ticket #939 Signed-off-by: Sol Jerome git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6055 ce84e21b-d406-0410-9b95-82705330c041 --- src/sbin/bcfg2-repo-validate | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/sbin') 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 -- cgit v1.2.3-1-g7c22