overcloud_cell: fix location of config-download

config-download was moved to the home directory and not in
/var/lib/mistral anymore.

Change-Id: I209ec1013d941c989bb14ef06779cdbf22cfcc0f
Closes-Bug: #1891932
(cherry picked from commit 83677d700e)
This commit is contained in:
Emilien Macchi 2020-08-17 15:17:57 -04:00
parent 7fcc694d00
commit 018ef1218f
1 changed files with 3 additions and 5 deletions

View File

@ -21,14 +21,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"""
@ -90,7 +87,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))