Merge "overcloud_cell: fix location of config-download"

This commit is contained in:
Zuul 2020-08-19 01:45:15 +00:00 committed by Gerrit Code Review
commit f004b3aa14
1 changed files with 3 additions and 5 deletions

View File

@ -19,14 +19,11 @@ from osc_lib.i18n import _
from osc_lib import utils
from tripleoclient import command
from tripleoclient import constants
from tripleoclient import exceptions
from tripleoclient import export
MISTRAL_VAR = os.environ.get('MISTRAL_VAR',
"/var/lib/mistral/")
class ExportCell(command.Command):
"""Export cell information used as import of another cell"""
@ -88,7 +85,8 @@ class ExportCell(command.Command):
stack_to_export = cell_stack
should_filter = False
config_download_dir = os.path.join(MISTRAL_VAR, stack_to_export)
config_download_dir = os.path.join(constants.DEFAULT_WORK_DIR,
stack_to_export)
data.update(export.export_stack(
clients.orchestration, stack_to_export, should_filter,
config_download_dir))