diff options
author | Tomas Babej <tbabej@redhat.com> | 2014-05-29 10:18:21 +0200 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-06-16 19:48:19 +0200 |
commit | 926f8647d2a676c1dd2e446633eb76cdf1a7bf0c (patch) | |
tree | 06c6519941bba3814a4e41d72580db8fd2814421 /ipapython/sysrestore.py | |
parent | a7c2327a366d2dfbbdde5362e957fad23e233105 (diff) | |
download | freeipa-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/sysrestore.py')
-rw-r--r-- | ipapython/sysrestore.py | 5 |
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 = {} |