Allow package install to be skipped for image build
This allows the image build command to be called where the tripleo dependencies are installed via pip (even in a venv). This makes development of image builder elements more practical. Change-Id: I93ca15338c932d52c7eb007b36fcc29be19f8f1b
This commit is contained in:
parent
bb267fe5f5
commit
295cffefc7
@ -81,6 +81,13 @@ class BuildOvercloudImage(command.Command):
|
|||||||
default=True,
|
default=True,
|
||||||
help=_("Skip build if cached image exists."),
|
help=_("Skip build if cached image exists."),
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--no-package-install",
|
||||||
|
dest="package_install",
|
||||||
|
action="store_false",
|
||||||
|
default=True,
|
||||||
|
help=_("Skip installing required packages."),
|
||||||
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--output-directory",
|
"--output-directory",
|
||||||
dest="output_directory",
|
dest="output_directory",
|
||||||
@ -106,6 +113,7 @@ class BuildOvercloudImage(command.Command):
|
|||||||
def take_action(self, parsed_args):
|
def take_action(self, parsed_args):
|
||||||
self.log.debug("take_action(%s)" % parsed_args)
|
self.log.debug("take_action(%s)" % parsed_args)
|
||||||
|
|
||||||
|
if parsed_args.package_install:
|
||||||
self._ensure_packages_installed()
|
self._ensure_packages_installed()
|
||||||
|
|
||||||
if not parsed_args.config_files:
|
if not parsed_args.config_files:
|
||||||
|
Loading…
Reference in New Issue
Block a user