diff options
author | Vincenzo Riccobene <vincenzox.m.riccobene@intel.com> | 2016-01-05 16:53:43 +0000 |
---|---|---|
committer | Jörgen Karlsson <jorgen.w.karlsson@ericsson.com> | 2016-01-06 22:25:34 +0000 |
commit | ffdd523055d2395d1216c5fa0007ed6af0b6146e (patch) | |
tree | df4886ee5845b17e54c794ef8260b84c4aa3d191 /yardstick/vTC/apexlake/experimental_framework/common.py | |
parent | 2f76296ddd88451361f2b47035afdafb3130f47e (diff) |
Fix ApexLake setup
Changes the directories where to store apexlake data in order to
allow a non super user to run the setup.
JIRA: YARDSTICK-35
Change-Id: I871b2ab793183887c86666bfe2241e3c26b4f427
Signed-off-by: Vincenzo Riccobene <vincenzox.m.riccobene@intel.com>
Diffstat (limited to 'yardstick/vTC/apexlake/experimental_framework/common.py')
-rw-r--r-- | yardstick/vTC/apexlake/experimental_framework/common.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/yardstick/vTC/apexlake/experimental_framework/common.py b/yardstick/vTC/apexlake/experimental_framework/common.py index 6b5f932ce..afe70241a 100644 --- a/yardstick/vTC/apexlake/experimental_framework/common.py +++ b/yardstick/vTC/apexlake/experimental_framework/common.py @@ -76,10 +76,10 @@ def init_conf_file(api=False): global CONF_FILE if api: CONF_FILE = ConfigurationFile(cf.get_sections_api(), - '/etc/apexlake/apexlake.conf') + '/tmp/apexlake/apexlake.conf') else: CONF_FILE = ConfigurationFile(cf.get_sections(), - '/etc/apexlake/apexlake.conf') + '/tmp/apexlake/apexlake.conf') def init_general_vars(api=False): @@ -99,10 +99,10 @@ def init_general_vars(api=False): "is not present in configuration file") TEMPLATE_DIR = '/tmp/apexlake/heat_templates/' - if not os.path.exists(TEMPLATE_DIR): - os.makedirs(TEMPLATE_DIR) - cmd = "cp /etc/apexlake/heat_templates/*.yaml {}".format(TEMPLATE_DIR) - run_command(cmd) + # if not os.path.exists(TEMPLATE_DIR): + # os.makedirs(TEMPLATE_DIR) + # cmd = "cp /tmp/apexlake/heat_templates/*.yaml {}".format(TEMPLATE_DIR) + # run_command(cmd) if not api: # Validate template name |