summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Client/Tools
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-12-05 15:01:30 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-12-05 15:01:30 -0500
commit1c335d124031b28d240559770c2a45059bb4e273 (patch)
treea9cfc6a1cf35341949104536df1b49eeb1976599 /src/lib/Bcfg2/Client/Tools
parent81166aa3b38fe6f4554c72f3733f2d0153f18978 (diff)
downloadbcfg2-1c335d124031b28d240559770c2a45059bb4e273.tar.gz
bcfg2-1c335d124031b28d240559770c2a45059bb4e273.tar.bz2
bcfg2-1c335d124031b28d240559770c2a45059bb4e273.zip
Augeas: avoid deprecation warning
Diffstat (limited to 'src/lib/Bcfg2/Client/Tools')
-rw-r--r--src/lib/Bcfg2/Client/Tools/POSIX/Augeas.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/POSIX/Augeas.py b/src/lib/Bcfg2/Client/Tools/POSIX/Augeas.py
index 5e5412fed..81c948d0d 100644
--- a/src/lib/Bcfg2/Client/Tools/POSIX/Augeas.py
+++ b/src/lib/Bcfg2/Client/Tools/POSIX/Augeas.py
@@ -1,8 +1,8 @@
""" Augeas driver """
import sys
-import augeas
import Bcfg2.Client.XML
+from augeas import Augeas
from Bcfg2.Client.Tools.POSIX.base import POSIXTool
@@ -198,7 +198,7 @@ class POSIXAugeas(POSIXTool):
def get_augeas(self, entry):
""" Get an augeas object for the given entry. """
if entry.get("name") not in self._augeas:
- aug = augeas.augeas()
+ aug = Augeas()
if entry.get("lens"):
self.logger.debug("Augeas: Adding %s to include path for %s" %
(entry.get("name"), entry.get("lens")))