from .xlate import XLATOR
-__version__ = '3.5.6'
+__version__ = '3.6.0'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
tz = pytz.timezone(tz_name)
steps = (
- 'init', 'read-yaml', 'pdns-zones', 'vmw-init', 'collect-folders', 'vmw-clusters',
- 'vmw-datastores', 'vmw-ds-clusters', 'vmw-networks', 'vmw-templates',
+ 'init', 'vmw-init', 'read-yaml', 'pdns-zones', 'vmw-test', 'collect-folders',
+ 'vmw-clusters', 'vmw-datastores', 'vmw-ds-clusters', 'vmw-networks', 'vmw-templates',
'validate-yaml', 'validate-storage', 'validate-iface', 'validate-dns',
'perform-dns', 'project-dir', 'tf-files', 'ensure-vmw-folders',
)
step_desc = {
'init': _('After initialization of all objects and handlers.'),
+ 'vmw-init': _('After initialisation of VSPhere handlers.'),
'read-yaml': _('After reading the given YAML file.'),
'pdns-zones': _('After retrieving all DNS zones from PowerDNS.'),
- 'vmw-init': _('After initialisation of VSPhere handlers.'),
+ 'vmw-test': _('After testing VSPhere handlers.'),
'collect-folders': _('After collecting all VMWare and local folders.'),
'vmw-clusters': _('After collecting all VMWare clusters.'),
'vmw-datastores': _('After collecting all VMWare datastores.'),
# -------------------------------------------------------------------------·
def test_vsphere_handlers(self):
+ if self.stop_at_step == 'vmw-test':
+ self.incr_verbosity()
+
for vname in self.vsphere.keys():
try:
except VSphereExpectedError as e:
raise ExpectedHandlerError(str(e))
+ LOG.info(_("Finished step {!r}.").format('vmw-test'))
+ if self.stop_at_step == 'vmw-test':
+ raise AbortExecution('vmw-test')
+
# -------------------------------------------------------------------------·
def assign_default_vmw_values(self):
"""Assigning not defined templates and clusters of VMs by their