Use catalog=True for package_loader queries
Package loader attempts to load packages during deployment, therefore it needs to see all the packages it can deploy, therefore it needs catalog=True context for that. This is related to api behaviour change, that allows packages api to distinct between packages one can deploy and packages one can edit. Change-Id: I5ffdc2728202f212408b9a5b4b6b267084c5723d Closes-Bug: #1452942
This commit is contained in:
parent
67589c7c12
commit
2ef7fbf021
|
@ -82,6 +82,7 @@ class ApiPackageLoader(PackageLoader):
|
||||||
return directory
|
return directory
|
||||||
|
|
||||||
def _get_definition(self, filter_opts):
|
def _get_definition(self, filter_opts):
|
||||||
|
filter_opts['catalog'] = True
|
||||||
try:
|
try:
|
||||||
packages = list(self._murano_client_factory().packages.filter(
|
packages = list(self._murano_client_factory().packages.filter(
|
||||||
**filter_opts))
|
**filter_opts))
|
||||||
|
|
Loading…
Reference in New Issue