summaryrefslogtreecommitdiffstats
path: root/src/sbin/bcfg2-info
diff options
context:
space:
mode:
authorCalen Pennington <cpennington@wgen.net>2010-12-07 14:23:52 -0500
committerCalen Pennington <cpennington@wgen.net>2010-12-07 14:23:52 -0500
commit87e3123d31cebbe451f685526c37d18ce0ad509c (patch)
treeb3a92f83a6335e3133f2f43c3995f3cd6769f843 /src/sbin/bcfg2-info
parent0cff753190c235a9ce65a920730d715a5e4a8ed4 (diff)
downloadbcfg2-87e3123d31cebbe451f685526c37d18ce0ad509c.tar.gz
bcfg2-87e3123d31cebbe451f685526c37d18ce0ad509c.tar.bz2
bcfg2-87e3123d31cebbe451f685526c37d18ce0ad509c.zip
Using xpath rather than findall so that we can handle the condition correctly
Diffstat (limited to 'src/sbin/bcfg2-info')
-rwxr-xr-xsrc/sbin/bcfg2-info2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info
index 497c39174..f379a51bb 100755
--- a/src/sbin/bcfg2-info
+++ b/src/sbin/bcfg2-info
@@ -238,7 +238,7 @@ class infoCore(cmd.Cmd, Bcfg2.Server.Core.Core):
return
# handle <Path type='file'> entries
- for configfile in [cfile for cfile in client_config.findall(".//Path[@type = 'file']")]:
+ for configfile in [cfile for cfile in client_config.xpath(".//Path[@type = 'file']")]:
try:
write_config_file(odir, configfile)
except FileNotBuilt, ex: