aboutsummaryrefslogtreecommitdiffstats
path: root/functest/api/resources/v1/envs.py
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2017-11-23 08:55:04 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-11-23 08:55:04 +0000
commit71ba783c1279370af035ff7cac2de7522e95de78 (patch)
treee5d60fb97657c9204d7f749d059f26530d9594cb /functest/api/resources/v1/envs.py
parent01a5192428eb99afcb94047e6faa54e1d57114d1 (diff)
parentd4996440fa16297aee7a925e6357a9cfd42d24f8 (diff)
Merge "Remove prepare_env"
Diffstat (limited to 'functest/api/resources/v1/envs.py')
-rw-r--r--functest/api/resources/v1/envs.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/functest/api/resources/v1/envs.py b/functest/api/resources/v1/envs.py
index 65e61c4b..3e6f05ac 100644
--- a/functest/api/resources/v1/envs.py
+++ b/functest/api/resources/v1/envs.py
@@ -20,7 +20,6 @@ from flasgger.utils import swag_from
from functest.api.base import ApiResource
from functest.api.common import api_utils
from functest.cli.commands.cli_env import Env
-import functest.utils.functest_utils as ft_utils
ADDRESS = socket.gethostbyname(socket.gethostname())
ENDPOINT_ENVS = ('http://{}:5000/api/v1/functest/envs'.format(ADDRESS))
@@ -45,16 +44,6 @@ class V1Envs(ApiResource):
""" Used to handle post request """
return self._dispatch_post()
- def prepare(self, args): # pylint: disable=no-self-use, unused-argument
- """ Prepare environment """
-
- result_env = ft_utils.execute_command("prepare_env start")
- if not result_env == 0:
- return api_utils.result_handler(
- status=1, data="Failed to prepare env")
- return api_utils.result_handler(
- status=0, data="Prepare env successfully")
-
def update_hosts(self, hosts_info): # pylint: disable=no-self-use
""" Update hosts info """