From d949f0eb515ad646a3059fb4bd382b490464c4fa Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 26 Oct 2020 13:56:16 +0900 Subject: [PATCH] Use the default flavor name when flavor parameter is not defined This patch ensures that the default flavor is used when the flavor parameter (Overcloud{{role.name}}Flavor) is not explicitly defined in deployment templates and plan, to emulate the behavior in tht to pick up the defalt flavor to deploy baremetal instances. Closes-Bug: #1901472 Change-Id: I6970a7fc294305d4fe6ad43b9c2e29090a1ecb37 (cherry picked from commit c0698312ad491bb89320c74448d9ff0a1213c6bc) --- lookup_plugins/roles_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lookup_plugins/roles_info.py b/lookup_plugins/roles_info.py index 8a3acd455..1c6dbfe57 100644 --- a/lookup_plugins/roles_info.py +++ b/lookup_plugins/roles_info.py @@ -63,7 +63,7 @@ class LookupModule(LookupBase): return { 'name': role['name'], 'count': role.get('CountDefault', 0), - 'flavor': None + 'flavor': role.get('FlavorDefault', 'baremetal') } roles = list(map(default_role_data, roles_data))