Change path removal suitable for integration and normal run.

This commit is contained in:
Darko Poljak 2017-09-14 09:53:16 +02:00
commit ac04edc233
2 changed files with 20 additions and 1 deletions

View file

@ -36,6 +36,7 @@ import os
import os.path
import collections
import uuid
import shutil
def find_cdist_exec_in_path():
@ -123,6 +124,7 @@ def _process_hosts_simple(action, host, manifest, verbose,
theclass.onehost(target_host, None, host_base_path, hostdir, args,
parallel=False, configuration=configuration,
remove_remote_files_dirs=True)
shutil.rmtree(base_root_path)
def configure_hosts_simple(host, manifest,