mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Revert "Server Upgrade: respect --test option in plugins"
This reverts commit c95c4849ae
.
This commit is contained in:
parent
c95c4849ae
commit
4190b1a47c
@ -60,10 +60,6 @@ class update_dnszones(PostUpdate):
|
||||
order=MIDDLE
|
||||
|
||||
def execute(self, **options):
|
||||
if not options.get('live_run'):
|
||||
self.log.info("Test mode: skipping 'update_dnszones'")
|
||||
return False, False, ()
|
||||
|
||||
ldap = self.obj.backend
|
||||
if not dns_container_exists(ldap):
|
||||
return (False, False, [])
|
||||
@ -163,11 +159,6 @@ class update_master_to_dnsforwardzones(PostUpdate):
|
||||
backup_path = u'%s%s' % (backup_dir, backup_filename)
|
||||
|
||||
def execute(self, **options):
|
||||
if not options.get('live_run'):
|
||||
self.log.info("Test mode: skipping "
|
||||
"'update_master_to_dnsforwardzones'")
|
||||
return False, False, ()
|
||||
|
||||
ldap = self.obj.backend
|
||||
# check LDAP if forwardzones already uses new semantics
|
||||
dns_container_dn = DN(api.env.container_dns, api.env.basedn)
|
||||
|
@ -38,10 +38,6 @@ class update_replica_attribute_lists(PreUpdate):
|
||||
order = MIDDLE
|
||||
|
||||
def execute(self, **options):
|
||||
if not options.get('live_run'):
|
||||
self.log.info("Test mode: skipping "
|
||||
"'update_replica_attribute_lists'")
|
||||
return False, False, ()
|
||||
# We need an IPAdmin connection to the backend
|
||||
self.log.debug("Start replication agreement exclude list update task")
|
||||
conn = ipaldap.IPAdmin(api.env.host, ldapi=True, realm=api.env.realm)
|
||||
|
@ -33,9 +33,6 @@ class update_idrange_type(PostUpdate):
|
||||
order = MIDDLE
|
||||
|
||||
def execute(self, **options):
|
||||
if not options.get('live_run'):
|
||||
self.log.info("Test mode: skipping 'update_idrange_type'")
|
||||
return False, False, ()
|
||||
ldap = self.obj.backend
|
||||
|
||||
base_dn = DN(api.env.container_ranges, api.env.basedn)
|
||||
@ -124,10 +121,6 @@ class update_idrange_baserid(PostUpdate):
|
||||
order = LAST
|
||||
|
||||
def execute(self, **options):
|
||||
if not options.get('live_run'):
|
||||
self.log.info("Test mode: skipping 'update_idrange_baserid'")
|
||||
return False, False, ()
|
||||
|
||||
ldap = self.obj.backend
|
||||
|
||||
base_dn = DN(api.env.container_ranges, api.env.basedn)
|
||||
|
@ -402,10 +402,6 @@ class update_managed_permissions(PostUpdate):
|
||||
|
||||
|
||||
def execute(self, **options):
|
||||
if not options.get('live_run'):
|
||||
self.log.info("Test mode: skipping 'update_managed_permissions'")
|
||||
return False, False, ()
|
||||
|
||||
ldap = self.api.Backend[ldap2]
|
||||
|
||||
anonymous_read_aci = self.get_anonymous_read_aci(ldap)
|
||||
|
@ -31,10 +31,6 @@ class update_pacs(PostUpdate):
|
||||
order = MIDDLE
|
||||
|
||||
def execute(self, **options):
|
||||
if not options.get('live_run'):
|
||||
self.log.info("Test mode: skipping 'update_pacs'")
|
||||
return False, False, ()
|
||||
|
||||
ldap = self.obj.backend
|
||||
|
||||
try:
|
||||
|
@ -28,9 +28,6 @@ class update_referint(PreUpdate):
|
||||
('cn', 'plugins'), ('cn', 'config'))
|
||||
|
||||
def execute(self, **options):
|
||||
if not options.get('live_run'):
|
||||
self.log.info("Test mode: skipping 'update_referint'")
|
||||
return False, False, ()
|
||||
|
||||
root_logger.debug("Upgrading referential integrity plugin configuration")
|
||||
ldap = self.obj.backend
|
||||
|
@ -33,10 +33,6 @@ class update_service_principalalias(PostUpdate):
|
||||
order = MIDDLE
|
||||
|
||||
def execute(self, **options):
|
||||
if not options.get('live_run'):
|
||||
self.log.info("Test mode: skipping 'update_service_principalalias'")
|
||||
return False, False, ()
|
||||
|
||||
ldap = self.obj.backend
|
||||
|
||||
base_dn = DN(api.env.container_service, api.env.basedn)
|
||||
|
Loading…
Reference in New Issue
Block a user