summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/plugins/update_pacs.py
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2015-03-18 15:46:00 +0100
committerPetr Vobornik <pvoborni@redhat.com>2015-04-14 19:25:47 +0200
commitf24f614396de809350b54423ca128b478601a64e (patch)
tree7284b80ce5c44ef57f507092e7be312ea082aa61 /ipaserver/install/plugins/update_pacs.py
parentcc19b5a76a37d1fb87deb45d9cbfc71472a99fa4 (diff)
downloadfreeipa-f24f614396de809350b54423ca128b478601a64e.tar.gz
freeipa-f24f614396de809350b54423ca128b478601a64e.tar.xz
freeipa-f24f614396de809350b54423ca128b478601a64e.zip
Server Upgrade: specify order of plugins in update files
* add 'plugin' directive * specify plugins order in update files * remove 'run plugins' options * use ldapupdater API instance in plugins * add update files representing former PreUpdate and PostUpdate order of plugins https://fedorahosted.org/freeipa/ticket/4904 Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipaserver/install/plugins/update_pacs.py')
-rw-r--r--ipaserver/install/plugins/update_pacs.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/ipaserver/install/plugins/update_pacs.py b/ipaserver/install/plugins/update_pacs.py
index ffe6c6670..5f8eec2c8 100644
--- a/ipaserver/install/plugins/update_pacs.py
+++ b/ipaserver/install/plugins/update_pacs.py
@@ -17,21 +17,18 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-from ipaserver.install.plugins import MIDDLE
-from ipaserver.install.plugins.baseupdate import PostUpdate
from ipalib import api, errors
+from ipalib import Updater
from ipapython.dn import DN
-class update_pacs(PostUpdate):
+class update_pacs(Updater):
"""
Includes default nfs:None only if no nfs: PAC present in ipakrbauthzdata.
"""
- order = MIDDLE
-
def execute(self, **options):
- ldap = self.obj.backend
+ ldap = self.api.Backend.ldap2
try:
dn = DN('cn=ipaConfig', 'cn=etc', api.env.basedn)