Merge "Removed launchpad loader from db migration script."

This commit is contained in:
Jenkins 2014-11-07 13:35:22 +00:00 committed by Gerrit Code Review
commit 6f7eb196c5

View File

@ -80,13 +80,6 @@ def do_load_superusers(config, cmd):
superusers_loader.do_load_models(CONF.command.file)
def do_load_launchpad(config, cmd):
# Doing import here so that you only need launchpadlib
# if you're actually importing from launchpad
from storyboard.db import launchpad_loader
launchpad_loader.do_load_models(CONF.command.project)
def add_command_parsers(subparsers):
for name in ['current', 'history', 'branches']:
parser = subparsers.add_parser(name)
@ -121,10 +114,6 @@ def add_command_parsers(subparsers):
parser.add_argument('file', type=str)
parser.set_defaults(func=do_load_superusers)
parser = subparsers.add_parser('load_launchpad')
parser.add_argument('project', type=str)
parser.set_defaults(func=do_load_launchpad)
command_opt = cfg.SubCommandOpt('command',
title='Command',