From 1473ce86eceebc4ef8ba1f77d1d7c326a7bebad9 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Sun, 2 Sep 2012 11:17:24 -0500 Subject: 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 --- src/lib/Bcfg2/Client/Tools/POSIX/Device.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/Bcfg2/Client') 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')) -- cgit v1.2.3-1-g7c22