Skip to content
Permalink
Browse files

feat: flexible overcloud parameter type

overcloud parameter can now be created on foreman as either string
or boolean.

Change-Id: I7550986ff731ffbe13461229d19770dcdadde2e3
  • Loading branch information...
grafuls committed Nov 5, 2019
1 parent 361a86c commit 4d5b6e2b0bca17bc0c3d2ba645f26c3167345d52
Showing with 6 additions and 3 deletions.
  1. +1 −2 quads/tools/create_input_assignments.py
  2. +5 −1 quads/tools/make_instackenv_json.py
@@ -116,12 +116,11 @@ def print_summary():
% (ansible_facts_link, factstyle_tag_start, factstyle_tag_end)
)
else:
_data.append(status)
if cloud_name == "cloud01":
_data.append(status)
if conf["openstack_management"]:
_data.append("")
else:
_data.append(status)
if conf["openstack_management"]:
_data.append(
"<a href=%s target=_blank>%s%s%s</a>"
@@ -50,7 +50,11 @@ def main():
overcloud = loop.run_until_complete(foreman.get_host_param(host.name, "overcloud"))
if not overcloud:
overcloud = {"result": "true"}
if "result" in overcloud and strtobool(overcloud["result"]):

if type(overcloud["result"]) != bool:
_overcloud_result = strtobool(overcloud["result"])

if "result" in overcloud and _overcloud_result:
mac = "00:00:00:00:00:00"
if len(host.interfaces) > 1:
mac = host.interfaces[1].mac_address

0 comments on commit 4d5b6e2

Please sign in to comment.
You can’t perform that action at this time.