diff options
author | 2015-10-20 14:18:37 +0200 | |
---|---|---|
committer | 2015-10-27 16:25:32 +0100 | |
commit | 143022408c26f3c6a5f5c1eaf0dce8061242675a (patch) | |
tree | 9eebf1775609553b38b1d2fcbd384bdd5a4309d7 /fuel/deploy/environments/execution_environment.py | |
parent | ad790a995855219ce876880f00ad59a8ffa2b2d9 (diff) |
Plugin config + bugfix + refactoring
ignoring external repo errors during plugin installation
refactoring import common
Install only those plugins which have a yaml config file located under plugins folder
collect puppet errors from all nodes
Change-Id: I8d5248cf31c4877a6d59bfcfe62b43daf4ad43ef
Signed-off-by: Szilard Cserey <szilard.cserey@ericsson.com>
Diffstat (limited to 'fuel/deploy/environments/execution_environment.py')
-rw-r--r-- | fuel/deploy/environments/execution_environment.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/fuel/deploy/environments/execution_environment.py b/fuel/deploy/environments/execution_environment.py index 63be5cd11..38e5bcdf7 100644 --- a/fuel/deploy/environments/execution_environment.py +++ b/fuel/deploy/environments/execution_environment.py @@ -9,16 +9,13 @@ from lxml import etree - -import common from dha_adapters.libvirt_adapter import LibvirtAdapter -exec_cmd = common.exec_cmd -err = common.err -log = common.log -check_dir_exists = common.check_dir_exists -check_file_exists = common.check_file_exists -check_if_root = common.check_if_root +from common import ( + exec_cmd, + log, + delete, +) class ExecutionEnvironment(object): @@ -51,7 +48,7 @@ class ExecutionEnvironment(object): exec_cmd('virsh destroy %s' % vm_name, False) exec_cmd('virsh undefine %s' % vm_name, False) for file in disk_files: - exec_cmd('rm -f %s' % file) + delete(file) def define_vm(self, vm_name, temp_vm_file, disk_path): log('Creating VM %s with disks %s' % (vm_name, disk_path)) |