Hi, the attached patch fixes <https://fedorahosted.org/freeipa/ticket/5995>.
Honza -- Jan Cholasta
From c8ce2e5776a4baa06dfd83090ab2e626ae202e89 Mon Sep 17 00:00:00 2001 From: Jan Cholasta <jchol...@redhat.com> Date: Wed, 29 Jun 2016 14:28:29 +0200 Subject: [PATCH] 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 --- 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 69af6e2..6517696 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 2656536..e172a30 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)] -- 2.7.4
-- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code