Address comments to lxc branch and fix several bugs with example-lxc.py
- C.HOST_KEY_CHECKING = False for ansible_playbook.py handler
- mkdir -p {{keys_dir}} added to ssh_key resource run action
This commit is contained in:
@@ -115,17 +115,17 @@ class SVNProvider(BaseProvider):
|
||||
self.path = path
|
||||
self.base_path = base_path or utils.read_config()['resources-directory']
|
||||
if path != '.':
|
||||
self.directory = os.path.join(self.base_path, path)
|
||||
self.repo_directory = os.path.join(self.base_path, path)
|
||||
else:
|
||||
self.directory = self.base_path
|
||||
self.repo_directory = os.path.join(self.directory, self.url.rsplit('/', 1)[-1])
|
||||
self.repo_directory = self.base_path
|
||||
self.directory = os.path.join(self.repo_directory, self.url.rsplit('/', 1)[-1])
|
||||
|
||||
def run(self):
|
||||
if not os.path.exists(self.directory):
|
||||
os.makedirs(self.directory)
|
||||
|
||||
if not os.path.exists(self.repo_directory):
|
||||
os.makedirs(self.repo_directory)
|
||||
|
||||
if not os.path.exists(self.directory):
|
||||
fabric_api.local(
|
||||
'cd {dir} && svn checkout {url}'.format(
|
||||
dir=self.directory,
|
||||
dir=self.repo_directory,
|
||||
url=self.url))
|
||||
|
||||
Reference in New Issue
Block a user