Some cleanups - fixed var

This commit is contained in:
Joshua Harlow 2012-03-15 19:45:49 -07:00
parent 347ef053b8
commit 3ebe2e4858

View File

@ -32,23 +32,24 @@ from devstack.runners import screen
LOG = logging.getLogger("devstack.component") LOG = logging.getLogger("devstack.component")
#how we actually setup and unsetup python # How we actually setup and unsetup python
PY_INSTALL = ['python', 'setup.py', 'develop'] PY_INSTALL = ['python', 'setup.py', 'develop']
PY_UNINSTALL = ['python', 'setup.py', 'develop', '--uninstall'] PY_UNINSTALL = ['python', 'setup.py', 'develop', '--uninstall']
#runtime status constants (return by runtime status) # Runtime status constants (return by runtime status)
# TODO: move...
STATUS_UNKNOWN = "unknown" STATUS_UNKNOWN = "unknown"
STATUS_STARTED = "started" STATUS_STARTED = "started"
STATUS_STOPPED = "stopped" STATUS_STOPPED = "stopped"
#which run types to which runner class # Which run types to which runner class
RUNNER_CLS_MAPPING = { RUNNER_CLS_MAPPING = {
settings.RUN_TYPE_FORK: fork.ForkRunner, settings.RUN_TYPE_FORK: fork.ForkRunner,
settings.RUN_TYPE_UPSTART: upstart.UpstartRunner, settings.RUN_TYPE_UPSTART: upstart.UpstartRunner,
settings.RUN_TYPE_SCREEN: screen.ScreenRunner, settings.RUN_TYPE_SCREEN: screen.ScreenRunner,
} }
#where symlinks will go # Where symlinks will go
BASE_LINK_DIR = "/etc" BASE_LINK_DIR = "/etc"
@ -266,7 +267,7 @@ class PythonInstallComponent(PkgInstallComponent):
# Todo handle duplicates/version differences? # Todo handle duplicates/version differences?
LOG.debug("Extending pip list with pips for subsystem %s" % (name)) LOG.debug("Extending pip list with pips for subsystem %s" % (name))
subsystem_pips = self.subsystems[name].get('pips', list()) subsystem_pips = self.subsystems[name].get('pips', list())
pip_list.extend(subsystem_pkgs) pip_list.extend(subsystem_pips)
return pip_list return pip_list
def _install_pips(self): def _install_pips(self):