forked from ungleich-public/cdist
port context -> remote
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
f79727559a
commit
a7fe8b4ed2
2 changed files with 7 additions and 20 deletions
|
|
@ -57,6 +57,13 @@ class Remote(object):
|
|||
|
||||
self.log = logging.getLogger(self.target_host)
|
||||
|
||||
self._init_env()
|
||||
|
||||
def _init_env(self):
|
||||
os.environ['__remote_copy'] = self.remote_copy
|
||||
os.environ['__remote_exec'] = self.remote_exec
|
||||
|
||||
|
||||
def create_files_dirs(self):
|
||||
self.rmdir(self.base_path)
|
||||
self.mkdir(self.base_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue