from .xlate import XLATOR
-__version__ = '3.1.2'
+__version__ = '3.1.3'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
# --------------------------------------------------------------------------
def create_varfiles(self):
- #vs_name = None
- #for vs_name in self.vsphere:
- # break
- vs_name = str([self.vsphere.keys()][0])
+ # vs_name = str([self.vsphere.keys()][0])
+ vs_name = None
+ for vs_name in self.vsphere.keys():
+ break
+ LOG.debug(_("Creating varfile for VSPhere {!r} ...").format(vs_name))
vs_host = self.config.vsphere[vs_name].host
vs_port = self.config.vsphere[vs_name].port