if app.verbose > 2:
print("{c}-Object:\n{a}".format(c=app.__class__.__name__, a=app))
-# app()
+app()
sys.exit(0)
LOG.info("Starting {a!r}, version {v!r} ...".format(
a=self.appname, v=self.version))
-# try:
-# ret = self.handler()
-# self.exit(ret)
-# except ExpectedHandlerError as e:
-# self.handle_error(str(e), "Temporary VM")
-# self.exit(5)
+ try:
+ ret = self.handler()
+ self.exit(ret)
+ except ExpectedHandlerError as e:
+ self.handle_error(str(e), "Temporary VM")
+ self.exit(5)
# =============================================================================
"self.config is not a CrTplConfiguration-instance, but a "
"{}-instance instead.").format(self.config.__class__.__name__))
+ retval = 0
+ try:
+ retval = self.run()
+ finally:
+ LOG.debug("Closing ...")
+ self.vsphere.disconnect()
+ self.vsphere = None
- return
+ return retval
+
+ # -------------------------------------------------------------------------
+ def run(self):
+
+ LOG.debug("Starting handling ...")
+
+ self.vsphere.get_about()
+
+ return 0
LOG.debug("Connecting to vSphere host {h}:{p} as {u!r} ...".format(
-Subproject commit d542794caaf1b5336ad451901cbb0b9e6d58b6b2
+Subproject commit ff5009c6121ba6918b3f57f235bbd41091e6710d