Skip to content

Commit

Permalink
Remove single quotes from node title
Browse files Browse the repository at this point in the history
  • Loading branch information
Silas Sewell committed Nov 2, 2011
1 parent 5f4b11c commit 8667186
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -54,11 +54,11 @@ def process(self, device, results, unused):
for line in command_strings[0].split('\n'): for line in command_strings[0].split('\n'):
match = re.search(r'Status of node (\S+)\s', line) match = re.search(r'Status of node (\S+)\s', line)
if match: if match:
node_title = match.group(1) node_title = match.group(1).strip("'")
node_id = prepId(node_title) node_id = prepId(node_title)
nodes.append(ObjectMap(data={ nodes.append(ObjectMap(data={
'id': node_id, 'id': node_id,
'title': match.group(1), 'title': node_title,
})) }))


continue continue
Expand Down

0 comments on commit 8667186

Please sign in to comment.