summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Client/Tools/POSIX
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2012-09-02 11:17:24 -0500
committerSol Jerome <sol.jerome@gmail.com>2012-09-02 11:17:24 -0500
commit1473ce86eceebc4ef8ba1f77d1d7c326a7bebad9 (patch)
tree4be8e2f6b528bb0e49d472883b2969915dbaa5c4 /src/lib/Bcfg2/Client/Tools/POSIX
parentd412772eed161a8d13edfacabcd1ff4c00558124 (diff)
downloadbcfg2-1473ce86eceebc4ef8ba1f77d1d7c326a7bebad9.tar.gz
bcfg2-1473ce86eceebc4ef8ba1f77d1d7c326a7bebad9.tar.bz2
bcfg2-1473ce86eceebc4ef8ba1f77d1d7c326a7bebad9.zip
POSIX/Device: Change perms back to mode
Change our terminology to match that used by MKNOD(1). This makes the client tool behave as it did previously. Also, add 'mode' to the schema to make `bcfg2-lint` happy. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Bcfg2/Client/Tools/POSIX')
-rw-r--r--src/lib/Bcfg2/Client/Tools/POSIX/Device.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/POSIX/Device.py b/src/lib/Bcfg2/Client/Tools/POSIX/Device.py
index 0ea4128f7..f40df38f3 100644
--- a/src/lib/Bcfg2/Client/Tools/POSIX/Device.py
+++ b/src/lib/Bcfg2/Client/Tools/POSIX/Device.py
@@ -7,7 +7,7 @@ except ImportError:
exec("from .base import POSIXTool, device_map")
class POSIXDevice(POSIXTool):
- __req__ = ['name', 'dev_type', 'perms', 'owner', 'group']
+ __req__ = ['name', 'dev_type', 'mode', 'owner', 'group']
def fully_specified(self, entry):
if entry.get('dev_type') in ['block', 'char']:
@@ -50,7 +50,7 @@ class POSIXDevice(POSIXTool):
if not self._exists(entry, remove=True):
try:
dev_type = entry.get('dev_type')
- mode = device_map[dev_type] | int(entry.get('perms'), 8)
+ mode = device_map[dev_type] | int(entry.get('mode'), 8)
if dev_type in ['block', 'char']:
major = int(entry.get('major'))
minor = int(entry.get('minor'))