Revert "Server Upgrade: respect --test option in plugins"

This reverts commit c95c4849ae.
This commit is contained in:
Tomas Babej 2015-03-19 12:48:06 +01:00
parent c95c4849ae
commit 4190b1a47c
7 changed files with 0 additions and 35 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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:

View File

@ -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

View File

@ -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)