from .xlate import XLATOR
-__version__ = '2.9.3'
+__version__ = '2.9.4'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
if self.stop_at_step == 'vmw-datastores':
self.incr_verbosity()
- self.vsphere.get_datastores()
+ for vname in self.vsphere:
+ self.vsphere[vname].get_datastores()
LOG.info(_("Finished step {!r}.").format('vmw-datastores'))
if self.stop_at_step == 'vmw-datastores':
if self.stop_at_step == 'vmw-ds-clusters':
self.incr_verbosity()
- self.vsphere.get_ds_clusters()
+ for vname in self.vsphere:
+ self.vsphere[vname].get_ds_clusters()
LOG.info(_("Finished step {!r}.").format('vmw-ds-clusters'))
if self.stop_at_step == 'vmw-ds-clusters':
if self.stop_at_step == 'vmw-networks':
self.incr_verbosity()
- self.vsphere.get_networks()
- if self.eval_errors:
- msg = ngettext(
- "Found one error in exploring vSphere resources.",
- "Found {n} errors in exploring vSphere resources.",
- self.eval_errors).format(n=self.eval_errors)
- raise ExpectedHandlerError(msg)
+ for vname in self.vsphere:
+ self.vsphere[vname].get_networks()
+ if self.eval_errors:
+ msg = ngettext(
+ "Found one error in exploring vSphere {v!r} resources.",
+ "Found {n} errors in exploring vSphere {v!r} resources.",
+ self.eval_errors).format(n=self.eval_errors, v=vname)
+ raise ExpectedHandlerError(msg)
LOG.info(_("Finished step {!r}.").format('vmw-networks'))
if self.stop_at_step == 'vmw-networks':