diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-03-20 15:08:00 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-03-20 15:08:00 -0400 |
commit | c25b2ba21fbf5a349a49173bdfd82e208b9f74bd (patch) | |
tree | fa313a017082fead728323c63f5550466c6d057d /tools | |
parent | f807391125a1dc4f852afc7d9642e47334f8d9b2 (diff) | |
download | bcfg2-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')
-rwxr-xr-x | tools/upgrade/1.3/migrate_perms_to_mode.py | 2 |
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) |