Use ~/openstack as root directory if not specified and not found in the env

This commit is contained in:
Joshua Harlow 2012-03-29 13:41:18 -07:00
parent 992a5c78af
commit 1405685d2e

3
stack
View File

@ -118,8 +118,7 @@ def run(args):
loaded_rcs = True
root_dir = env.get_key(env_rc.INSTALL_ROOT)
if not root_dir:
print(utils.color_text("No root directory specified!", "red"))
return False
root_dir = utils.joinpths(sh.gethomedir(), 'openstack')
root_dir = sh.abspth(root_dir)
setup_root(root_dir)