summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/FileProbes.py
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2012-10-15 14:13:05 -0500
committerSol Jerome <sol.jerome@gmail.com>2012-10-15 14:13:05 -0500
commitb2bc6bdeb491002d937342896294d0de8586084a (patch)
treed4a49845155607e616bcd124664bd1776fb113cd /src/lib/Bcfg2/Server/Plugins/FileProbes.py
parente88ef5ad2db84aa2664330096881a4d627d62b8c (diff)
downloadbcfg2-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.py4
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")