X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=fuel%2Fdeploy%2Fexecution_environment.py;fp=fuel%2Fdeploy%2Fsetup_execution_environment.py;h=e671463e428f34960236080e29ef3db0332fb0d2;hb=a98bf1747db2894394da929d07bde78a1ec19015;hp=d97fcdeb2d80bd23797882e7196914c9ce17713c;hpb=153ad3e4d97f19ab5e465df6a46e26b7c7935058;p=genesis.git diff --git a/fuel/deploy/setup_execution_environment.py b/fuel/deploy/execution_environment.py similarity index 67% rename from fuel/deploy/setup_execution_environment.py rename to fuel/deploy/execution_environment.py index d97fcde..e671463 100644 --- a/fuel/deploy/setup_execution_environment.py +++ b/fuel/deploy/execution_environment.py @@ -1,12 +1,20 @@ +############################################################################### +# Copyright (c) 2015 Ericsson AB and others. +# szilard.cserey@ericsson.com +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################### + + import yaml import io -import sys import os import common from environments.libvirt_environment import LibvirtEnvironment from environments.virtual_fuel import VirtualFuel -from dea import DeploymentEnvironmentAdapter exec_cmd = common.exec_cmd err = common.err @@ -16,7 +24,9 @@ check_file_exists = common.check_file_exists check_if_root = common.check_if_root ArgParser = common.ArgParser + class ExecutionEnvironment(object): + def __new__(cls, storage_dir, pxe_bridge, dha_path, dea): with io.open(dha_path) as yaml_file: