[373577] Allow hostnames with underscores
- Use a different token in the tag representing bootaction key so that a hostname with a underscore doesn't cause a deployment failure Change-Id: I6197494bfe28398300e38b5017ad94350204340e
This commit is contained in:
parent
a9301c146b
commit
3e4849e132
|
@ -26,10 +26,10 @@ early_commands:
|
||||||
late_commands:
|
late_commands:
|
||||||
{{ "{{" }}py:
|
{{ "{{" }}py:
|
||||||
def find_ba_key(n):
|
def find_ba_key(n):
|
||||||
tag_prefix = "%s_baid" % n.hostname
|
tag_prefix = "%s__baid" % n.hostname
|
||||||
for t in n.tag_names():
|
for t in n.tag_names():
|
||||||
if t.startswith(tag_prefix):
|
if t.startswith(tag_prefix):
|
||||||
prefix, ba_key = t.split('-')
|
prefix, ba_key = t.split('__baid__')
|
||||||
return ba_key
|
return ba_key
|
||||||
return False
|
return False
|
||||||
{{ "}}" }}
|
{{ "}}" }}
|
||||||
|
|
Loading…
Reference in New Issue