from .xlate import XLATOR
-__version__ = '0.2.2'
+__version__ = '0.2.3'
LOG = logging.getLogger(__name__)
proc = self.exec_cobbler('version', no_simulate=True)
- cobbler_version = proc.stdout
- LOG.info(_("Version of {} is:").format("Cobbler") + "\n{}".format(cobbler_version))
+ first_line = proc.stdout.splitlines()[0]
+ cobbler_version = re.sub(r'^\s*cobbler\s+', '', first_line, re.IGNORECASE).strip()
+ LOG.info(_("Version of {} is:").format("Cobbler") + " {!r}".format(cobbler_version))
return cobbler_version