aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack/examples
diff options
context:
space:
mode:
Diffstat (limited to 'functest/opnfv_tests/openstack/examples')
-rwxr-xr-xfunctest/opnfv_tests/openstack/examples/create_instance_and_ip.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/functest/opnfv_tests/openstack/examples/create_instance_and_ip.py b/functest/opnfv_tests/openstack/examples/create_instance_and_ip.py
index 6a2abe60..b4e2e519 100755
--- a/functest/opnfv_tests/openstack/examples/create_instance_and_ip.py
+++ b/functest/opnfv_tests/openstack/examples/create_instance_and_ip.py
@@ -11,7 +11,9 @@
#
import argparse
+import os
import sys
+
import functest.utils.functest_logger as ft_logger
import functest.utils.openstack_utils as os_utils
import functest.utils.functest_constants as ft_constants
@@ -36,8 +38,7 @@ EXAMPLE_FLAVOR = ft_constants.EXAMPLE_FLAVOR
EXAMPLE_IMAGE_NAME = ft_constants.EXAMPLE_IMAGE_NAME
IMAGE_FILENAME = ft_constants.GLANCE_IMAGE_FILENAME
IMAGE_FORMAT = ft_constants.GLANCE_IMAGE_FORMAT
-IMAGE_PATH = ft_constants.FUNCTEST_DATA_DIR + \
- "/" + IMAGE_FILENAME
+IMAGE_PATH = os.path.join(ft_constants.FUNCTEST_DATA_DIR, IMAGE_FILENAME)
# NEUTRON Private Network parameters