From 926f8647d2a676c1dd2e446633eb76cdf1a7bf0c Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Thu, 29 May 2014 10:18:21 +0200 Subject: ipaplatform: Change platform dependant code in freeipa to use ipaplatform tasks https://fedorahosted.org/freeipa/ticket/4052 Reviewed-By: Petr Viktorin --- ipapython/sysrestore.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ipapython') diff --git a/ipapython/sysrestore.py b/ipapython/sysrestore.py index 2c4741f3d..b5f47bd1e 100644 --- a/ipapython/sysrestore.py +++ b/ipapython/sysrestore.py @@ -33,6 +33,7 @@ import string from ipapython import ipautil from ipapython import services as ipaservices +from ipaplatform import tasks SYSRESTORE_PATH = "/tmp" SYSRESTORE_INDEXFILE = "sysrestore.index" @@ -190,7 +191,7 @@ class FileStore: os.chown(path, int(uid), int(gid)) os.chmod(path, int(mode)) - ipaservices.restore_context(path) + tasks.restore_context(path) del self.files[filename] self.save() @@ -221,7 +222,7 @@ class FileStore: os.chown(path, int(uid), int(gid)) os.chmod(path, int(mode)) - ipaservices.restore_context(path) + tasks.restore_context(path) #force file to be deleted self.files = {} -- cgit