From 1c335d124031b28d240559770c2a45059bb4e273 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Thu, 5 Dec 2013 15:01:30 -0500 Subject: Augeas: avoid deprecation warning --- src/lib/Bcfg2/Client/Tools/POSIX/Augeas.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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"))) -- cgit v1.2.3-1-g7c22