diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2012-10-15 14:13:05 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2012-10-15 14:13:05 -0500 |
commit | b2bc6bdeb491002d937342896294d0de8586084a (patch) | |
tree | d4a49845155607e616bcd124664bd1776fb113cd /src/lib/Bcfg2/Server/Plugins/FileProbes.py | |
parent | e88ef5ad2db84aa2664330096881a4d627d62b8c (diff) | |
download | bcfg2-b2bc6bdeb491002d937342896294d0de8586084a.tar.gz bcfg2-b2bc6bdeb491002d937342896294d0de8586084a.tar.bz2 bcfg2-b2bc6bdeb491002d937342896294d0de8586084a.zip |
Plugins: Update builtin plugins to use 'mode' attribute
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/FileProbes.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/FileProbes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/FileProbes.py b/src/lib/Bcfg2/Server/Plugins/FileProbes.py index f6009d8db..8bea7719c 100644 --- a/src/lib/Bcfg2/Server/Plugins/FileProbes.py +++ b/src/lib/Bcfg2/Server/Plugins/FileProbes.py @@ -41,7 +41,7 @@ data = Bcfg2.Client.XML.Element("ProbedFileData", name=path, owner=pwd.getpwuid(stat[4])[0], group=grp.getgrgid(stat[5])[0], - perms=oct(stat[0] & 4095)) + mode=oct(stat[0] & 4095)) try: data.text = b64encode(open(path).read()) except: @@ -219,7 +219,7 @@ class FileProbes(Bcfg2.Server.Plugin.Plugin, "Info", owner=data.get("owner", Bcfg2.Options.MDATA_OWNER.value), group=data.get("group", Bcfg2.Options.MDATA_GROUP.value), - perms=data.get("perms", Bcfg2.Options.MDATA_PERMS.value), + mode=data.get("mode", Bcfg2.Options.MDATA_PERMS.value), encoding=entry.get("encoding", Bcfg2.Options.ENCODING.value)) root = lxml.etree.Element("FileInfo") |