diff options
author | Jan Cholasta <jcholast@redhat.com> | 2016-06-29 14:28:29 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2016-06-30 11:04:05 +0200 |
commit | ce93b091d2ffbafedc721551f437631eed0e5a86 (patch) | |
tree | 8465ef8cbbcfac15398bbcfceee1593da3cebe01 | |
parent | 8d5272e68775046db450d860c173a4d531a95ff2 (diff) | |
download | freeipa-ce93b091d2ffbafedc721551f437631eed0e5a86.tar.gz freeipa-ce93b091d2ffbafedc721551f437631eed0e5a86.tar.xz freeipa-ce93b091d2ffbafedc721551f437631eed0e5a86.zip |
backup: use in-server API in ipa-backup and ipa-restore
Use in-server API so that the commands don't try to fetch API schema and
fail.
https://fedorahosted.org/freeipa/ticket/5995
Reviewed-By: Milan Kubik <mkubik@redhat.com>
-rw-r--r-- | ipaserver/install/ipa_backup.py | 2 | ||||
-rw-r--r-- | ipaserver/install/ipa_restore.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ipaserver/install/ipa_backup.py b/ipaserver/install/ipa_backup.py index 69af6e2d5..65176964a 100644 --- a/ipaserver/install/ipa_backup.py +++ b/ipaserver/install/ipa_backup.py @@ -255,7 +255,7 @@ class Backup(admintool.AdminTool): options = self.options super(Backup, self).run() - api.bootstrap(in_server=False, context='backup') + api.bootstrap(in_server=True, context='backup') api.finalize() self.log.info("Preparing backup on %s", api.env.host) diff --git a/ipaserver/install/ipa_restore.py b/ipaserver/install/ipa_restore.py index 265653695..e172a303e 100644 --- a/ipaserver/install/ipa_restore.py +++ b/ipaserver/install/ipa_restore.py @@ -844,7 +844,7 @@ class Restore(admintool.AdminTool): services.knownservices.certmonger.restart() def init_api(self, **overrides): - api.bootstrap(in_server=False, context='restore', **overrides) + api.bootstrap(in_server=True, context='restore', **overrides) api.finalize() self.instances = [installutils.realm_to_serverid(api.env.realm)] |