aboutsummaryrefslogtreecommitdiffstats
path: root/functest/cli/commands/cli_env.py
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2017-12-12 14:01:54 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-12-12 14:01:54 +0000
commitdef49808fcca40d837f0a37cc23783af80198c01 (patch)
treec30493618e1cec29cbcd68e9a0ea1de7f10d2577 /functest/cli/commands/cli_env.py
parent250a7936cc34e2e22c7a9a8f766c9ee0bdcb9f4c (diff)
parent7a07dd0968ab9775e7bbfd59ff19bddcb8605af4 (diff)
Merge "Add python3 support in cli"
Diffstat (limited to 'functest/cli/commands/cli_env.py')
-rw-r--r--functest/cli/commands/cli_env.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/functest/cli/commands/cli_env.py b/functest/cli/commands/cli_env.py
index 0e0afe52..c41f8f34 100644
--- a/functest/cli/commands/cli_env.py
+++ b/functest/cli/commands/cli_env.py
@@ -12,6 +12,8 @@ import prettytable
from functest.utils.constants import CONST
+import six
+
class Env(object):
@@ -52,7 +54,7 @@ class CliEnv(Env):
msg = prettytable.PrettyTable(
header_style='upper', padding_width=5,
field_names=['Functest Environment', 'value'])
- for key, value in env_info.iteritems():
+ for key, value in six.iteritems(env_info):
if key is not None:
msg.add_row([key, value])
click.echo(msg.get_string())