Fix exception message
Fixes wording of the exception message, and also notes that the templates directory may be inaccessible due to permission denied. This could be caused by using a remote mounted (nfs/sshfs) directory that is not accessible by root. Change-Id: I7210831eafea825a3e7f4209c79b07a0b2510dac
This commit is contained in:
parent
875bbc74ee
commit
0989e39c43
@ -283,7 +283,8 @@ class Deploy(command.Command):
|
||||
"""
|
||||
self._create_working_dirs()
|
||||
if not os.path.exists(source_templates_dir):
|
||||
raise exceptions.NotFound("%s template director does not exists" %
|
||||
raise exceptions.NotFound("%s templates directory does not exist "
|
||||
"or permission denied" %
|
||||
source_templates_dir)
|
||||
if not os.path.exists(self.tht_render):
|
||||
shutil.copytree(source_templates_dir, self.tht_render,
|
||||
|
Loading…
x
Reference in New Issue
Block a user