summaryrefslogtreecommitdiffstats
path: root/tools/upgrade
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-03-20 15:08:00 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-03-20 15:08:00 -0400
commitc25b2ba21fbf5a349a49173bdfd82e208b9f74bd (patch)
treefa313a017082fead728323c63f5550466c6d057d /tools/upgrade
parentf807391125a1dc4f852afc7d9642e47334f8d9b2 (diff)
downloadbcfg2-c25b2ba21fbf5a349a49173bdfd82e208b9f74bd.tar.gz
bcfg2-c25b2ba21fbf5a349a49173bdfd82e208b9f74bd.tar.bz2
bcfg2-c25b2ba21fbf5a349a49173bdfd82e208b9f74bd.zip
migrate_perms_to_mode.py: really seriously handle nested Path tags
Diffstat (limited to 'tools/upgrade')
-rwxr-xr-xtools/upgrade/1.3/migrate_perms_to_mode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/upgrade/1.3/migrate_perms_to_mode.py b/tools/upgrade/1.3/migrate_perms_to_mode.py
index de336456f..ff3fe91c0 100755
--- a/tools/upgrade/1.3/migrate_perms_to_mode.py
+++ b/tools/upgrade/1.3/migrate_perms_to_mode.py
@@ -36,7 +36,7 @@ def convertstructure(structfile):
"""Do perms -> mode conversion for structure files."""
xdata = lxml.etree.parse(structfile)
found = False
- for path in xdata.xpath('//BoundPath|Path'):
+ for path in xdata.xpath('//BoundPath|//Path'):
found = setmodeattr(path)
if found:
writefile(structfile, xdata)