URL: https://github.com/freeipa/freeipa/pull/959 Author: davidkupka Title: #959: schema cache: Generate help after fetching schema from server Action: opened
PR body: """ When schema is not in cache and is fetched from server help must be generated otherwise `ipa help` call fails with traceback. https://pagure.io/freeipa/issue/7092 """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/959/head:pr959 git checkout pr959
From 078f93b0ff1c8dd2e327b65160858775a138949e Mon Sep 17 00:00:00 2001 From: David Kupka <dku...@redhat.com> Date: Mon, 7 Aug 2017 14:14:03 +0200 Subject: [PATCH] schema cache: Generate help after fetching schema from server When schema is not in cache and is fetched from server help must be generated otherwise `ipa help` call fails with traceback. https://pagure.io/freeipa/issue/7092 --- ipaclient/remote_plugins/schema.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ipaclient/remote_plugins/schema.py b/ipaclient/remote_plugins/schema.py index efb479079b..1da556369b 100644 --- a/ipaclient/remote_plugins/schema.py +++ b/ipaclient/remote_plugins/schema.py @@ -427,6 +427,7 @@ def _fetch(self, client, ignore_cache=False): except KeyError as e: logger.warning("Failed to fetch schema: %s", e) raise NotAvailable() + self._help = self._generate_help(self._dict) return (fp, ttl,)
_______________________________________________ FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org