summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-05-07 14:28:22 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-05-07 14:43:37 -0400
commit4cb722d650a7cc5d0f58141d309896b901d19784 (patch)
tree799abd847868ef78059a513e914c5b84781c1831 /tools
parent9d6387d66c863c8525a4521258ccda136c3d6817 (diff)
downloadbcfg2-4cb722d650a7cc5d0f58141d309896b901d19784.tar.gz
bcfg2-4cb722d650a7cc5d0f58141d309896b901d19784.tar.bz2
bcfg2-4cb722d650a7cc5d0f58141d309896b901d19784.zip
POSIXUsers: allow better <MemberOf group="foo"/> syntax
Diffstat (limited to 'tools')
-rwxr-xr-xtools/posixusers_baseline.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/posixusers_baseline.py b/tools/posixusers_baseline.py
index a4abca42d..c45e54f1a 100755
--- a/tools/posixusers_baseline.py
+++ b/tools/posixusers_baseline.py
@@ -61,8 +61,8 @@ def main():
if entry.tag == 'POSIXUser':
entry.set("group", grp.getgrgid(data[3])[0])
for group in users.user_supplementary_groups(entry):
- memberof = lxml.etree.SubElement(entry, "MemberOf")
- memberof.text = group[0]
+ memberof = lxml.etree.SubElement(entry, "MemberOf",
+ group=group[0])
entry.tag = "Bound" + entry.tag
baseline.append(entry)