Add a tripleo passthrough script to make the install from packages so that we can reuse more of the instack scripts

This commit is contained in:
James Slagle 2014-07-14 15:14:27 -04:00
parent b106b567b5
commit 74c5a1bfc7
1 changed files with 14 additions and 0 deletions

14
scripts/tripleo Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/python
import os
import subprocess
import sys
command = sys.argv[1:]
instack_root = os.environ.get("INSTACK_ROOT", os.getcwd())
command[0] = "%s/tripleo-incubator/scripts/%s" % (instack_root, command[0])
os.environ["PATH"] = "%s/tripleo-incubator/scripts:%s" % \
(instack_root, os.environ["PATH"])
sys.exit(subprocess.call(command))