summaryrefslogtreecommitdiffstats
path: root/ipapython
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2014-05-29 10:18:21 +0200
committerPetr Viktorin <pviktori@redhat.com>2014-06-16 19:48:19 +0200
commit926f8647d2a676c1dd2e446633eb76cdf1a7bf0c (patch)
tree06c6519941bba3814a4e41d72580db8fd2814421 /ipapython
parenta7c2327a366d2dfbbdde5362e957fad23e233105 (diff)
downloadfreeipa-926f8647d2a676c1dd2e446633eb76cdf1a7bf0c.tar.gz
freeipa-926f8647d2a676c1dd2e446633eb76cdf1a7bf0c.tar.xz
freeipa-926f8647d2a676c1dd2e446633eb76cdf1a7bf0c.zip
ipaplatform: Change platform dependant code in freeipa to use ipaplatform tasks
https://fedorahosted.org/freeipa/ticket/4052 Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'ipapython')
-rw-r--r--ipapython/sysrestore.py5
1 files changed, 3 insertions, 2 deletions
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 = {}