From ce93b091d2ffbafedc721551f437631eed0e5a86 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Wed, 29 Jun 2016 14:28:29 +0200 Subject: 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 --- ipaserver/install/ipa_backup.py | 2 +- 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)] -- cgit