typos
This commit is contained in:
parent
a22915aaa8
commit
a71f4dde55
1 changed files with 2 additions and 1 deletions
|
@ -2,7 +2,7 @@ from novaclient.v1_1.client import Client
|
||||||
import re
|
import re
|
||||||
|
|
||||||
def extract_ip_from_stdout(output):
|
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:
|
if match:
|
||||||
return match.group(1)
|
return match.group(1)
|
||||||
|
|
||||||
|
@ -35,6 +35,7 @@ class FilterModule(object):
|
||||||
# "image_id_to_name": image_id_to_name,
|
# "image_id_to_name": image_id_to_name,
|
||||||
"image_name_to_id": image_name_to_id,
|
"image_name_to_id": image_name_to_id,
|
||||||
"network_name_to_id": network_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,
|
# "network_id_to_name": network_id_to_name,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue