浏览代码

Consume resource-registry in ProcessTemplatesAction

Retrieve the registry from the plan and pass it to stack operation later
on.

Closes-Bug: #1735330
Change-Id: I1bb33796afa2c6d9a2bd7202e05075924f93da5d
(cherry picked from commit 29f875e1f6)
tags/7.6.6
Thomas Herve 2 年前
父节点
当前提交
cbaf576f1a
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. +7
    -0
      tripleo_common/actions/templates.py

+ 7
- 0
tripleo_common/actions/templates.py 查看文件

@@ -354,6 +354,13 @@ class ProcessTemplatesAction(base.TripleOAction):
temp_files.append(env_temp_file)
env_paths.append(env_temp_file)

registry = plan_env.get('resource_registry', {})
if registry:
env_temp_file = _create_temp_file(
{'resource_registry': registry})
temp_files.append(env_temp_file)
env_paths.append(env_temp_file)

def _env_path_is_object(env_path):
retval = env_path.startswith(swift.url)
LOG.debug('_env_path_is_object %s: %s' % (env_path, retval))

正在加载...
取消
保存