commit 6719f6c36fac3c7d0efe7c4bc703ef3abda6250d Author: Radek Novacek rnovacek@redhat.com Date: Wed Nov 5 10:46:56 2014 +0100
vdsm: fix regular expression for reading CN from cert
virt/vdsm/vdsm.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --- diff --git a/virt/vdsm/vdsm.py b/virt/vdsm/vdsm.py index e1e9a47..2c0ad17 100644 --- a/virt/vdsm/vdsm.py +++ b/virt/vdsm/vdsm.py @@ -72,7 +72,7 @@ class Vdsm(Virt): out, err = p.communicate() if p.returncode != 0: return '0' - return re.search('/CN=([^/]+)/', out).group(1) + return re.search('/CN=([^/$\n]+)', out).group(1)
def _secureConnect(self): addr = self._getLocalVdsName(self.trust_store_path)