Changing the regular expression for rabbitmq

Change-Id: Ic17400e3034cb02f12c8e9bcbe379b1cb2b57c9d
This commit is contained in:
Anand Shanmugam 2016-02-02 12:26:59 -08:00
parent 6a4a49b020
commit 2a015f58b2
1 changed files with 2 additions and 2 deletions

View File

@ -92,14 +92,14 @@ class operator_scenario(base.Scenario):
mathobj = re.search(
r'nodes,\[{disc,\[(.*?)\]', node_status_string, re.M | re.I)
if mathobj:
nodes = [x.rstrip("'").lstrip("'").rstrip(" ").lstrip(" ")
nodes = [x.rstrip(" ").lstrip(" ").rstrip("'").lstrip("'")
for x in mathobj.group(1).split(",")]
mathobj = re.search(
r'running_nodes,\[(.*?)\]}', node_status_string, re.M | re.I)
if mathobj:
running = [x.rstrip("'").lstrip("'").rstrip(" ").lstrip(" ")
running = [x.rstrip(" ").lstrip(" ").rstrip("'").lstrip("'")
for x in mathobj.group(1).split(",")]
diffnodes = list(set(nodes) - set(running))