This commit is contained in:
Miroslav Suchý 2015-06-10 16:47:21 +02:00
parent a22915aaa8
commit a71f4dde55

View file

@ -2,7 +2,7 @@ from novaclient.v1_1.client import Client
import re
def extract_ip_from_stdout(output):
match = re.search(r'IP=([^\{\}"]+)', result, re.MULTILINE)
match = re.search(r'IP=([^\{\}\n"]+)', output, re.MULTILINE)
if match:
return match.group(1)
@ -35,6 +35,7 @@ class FilterModule(object):
# "image_id_to_name": image_id_to_name,
"image_name_to_id": image_name_to_id,
"network_name_to_id": network_name_to_id,
"extract_ip_from_stdout": extract_ip_from_stdout,
# "network_id_to_name": network_id_to_name,
}