def __init__(self, logger, wls_version=None): """ Initialization of helper class with logger and version :param logger: where to log information from version requests :param wls_version: represented by this helper instance. If None, then retrieve version from weblogic tool """ self.logger = logger if wls_version is not None: self.wl_version = str(wls_version) self.wl_version_actual = str(version_helper.getReleaseBuildVersion()) else: self.wl_version = str(version_helper.getReleaseBuildVersion()) self.wl_version_actual = self.wl_version
def wls_version(): """ Return the version of the oracle home for the current wlst session. :return: weblogic version """ return str(WebLogicVersionClass.getReleaseBuildVersion())