From 609784ded1e298c3120defb0330d890763ba54f6 Mon Sep 17 00:00:00 2001
From: Moshe Levi <moshele@mellanox.com>
Date: Wed, 27 Dec 2017 03:03:38 +0200
Subject: [PATCH] fix generate_environments to run in python3

This patch fix the following error when running python3
TypeError: can only concatenate list (not "dict_keys") to list

Change-Id: Ic487bf4c4f6cb2bc35011416056bef1417a23076
---
 tripleo_heat_templates/environment_generator.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tripleo_heat_templates/environment_generator.py b/tripleo_heat_templates/environment_generator.py
index e3e1e4023a..cc5e47bb88 100755
--- a/tripleo_heat_templates/environment_generator.py
+++ b/tripleo_heat_templates/environment_generator.py
@@ -82,7 +82,7 @@ def _generate_environment(input_env, output_path, parent_env=None):
             if template_data['parameters'] == 'all':
                 new_names = [k for k, v in f_params.items()]
                 for hidden in _HIDDEN_PARAMS:
-                    if (hidden not in (static_names + sample_values.keys()) and
+                    if (hidden not in (static_names + list(sample_values)) and
                             hidden in new_names):
                         new_names.remove(hidden)
             else: