2008-03-27 18:01:38 -05:00
|
|
|
#
|
2020-07-08 09:16:17 -05:00
|
|
|
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
|
2008-03-27 18:01:38 -05:00
|
|
|
#
|
|
|
|
|
2020-07-08 09:16:17 -05:00
|
|
|
"""
|
|
|
|
Facade for ipalib.sysrestore for backwards compatibility
|
|
|
|
"""
|
2010-05-03 14:21:51 -05:00
|
|
|
|
2020-07-08 09:16:17 -05:00
|
|
|
from ipalib import sysrestore as real_sysrestore
|
2010-05-03 14:21:51 -05:00
|
|
|
|
2020-08-06 10:41:14 -05:00
|
|
|
|
2020-07-08 09:16:17 -05:00
|
|
|
class FileStore(real_sysrestore.FileStore):
|
|
|
|
def __init__(self, path=real_sysrestore.SYSRESTORE_PATH,
|
|
|
|
index_file=real_sysrestore.SYSRESTORE_INDEXFILE):
|
|
|
|
super(FileStore, self).__init__(path, index_file)
|
2010-05-03 14:21:51 -05:00
|
|
|
|
2020-08-06 10:41:14 -05:00
|
|
|
|
2020-07-08 09:16:17 -05:00
|
|
|
class StateFile(real_sysrestore.StateFile):
|
|
|
|
def __init__(self, path=real_sysrestore.SYSRESTORE_PATH,
|
|
|
|
state_file=real_sysrestore.SYSRESTORE_STATEFILE):
|
|
|
|
super(StateFile, self).__init__(path, state_file)
|