From 74c5a1bfc7d61ef0f1a616533ab9e1f0dd2d3898 Mon Sep 17 00:00:00 2001 From: James Slagle <jslagle@redhat.com> Date: Mon, 14 Jul 2014 15:14:27 -0400 Subject: [PATCH] Add a tripleo passthrough script to make the install from packages so that we can reuse more of the instack scripts --- scripts/tripleo | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/tripleo diff --git a/scripts/tripleo b/scripts/tripleo new file mode 100755 index 000000000..972fd7e5b --- /dev/null +++ b/scripts/tripleo @@ -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))