summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Client/Tools/POSIX/Device.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Bcfg2/Client/Tools/POSIX/Device.py')
-rw-r--r--src/lib/Bcfg2/Client/Tools/POSIX/Device.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/POSIX/Device.py b/src/lib/Bcfg2/Client/Tools/POSIX/Device.py
index f40df38f3..d5aaf069d 100644
--- a/src/lib/Bcfg2/Client/Tools/POSIX/Device.py
+++ b/src/lib/Bcfg2/Client/Tools/POSIX/Device.py
@@ -1,12 +1,12 @@
+""" Handle <Path type='nonexistent' ...> entries """
+
import os
import sys
-try:
- from base import POSIXTool, device_map
-except ImportError:
- # py3k, incompatible syntax with py2.4
- exec("from .base import POSIXTool, device_map")
+from Bcfg2.Client.Tools.POSIX.base import POSIXTool, device_map
+
class POSIXDevice(POSIXTool):
+ """ Handle <Path type='nonexistent' ...> entries """
__req__ = ['name', 'dev_type', 'mode', 'owner', 'group']
def fully_specified(self, entry):
@@ -22,7 +22,7 @@ class POSIXDevice(POSIXTool):
ondisk = self._exists(entry)
if not ondisk:
return False
-
+
# attempt to verify device properties as specified in config
rv = True
dev_type = entry.get('dev_type')