Browse Source

Merge "Remove unused variable"

changes/69/471969/41
Zuul 4 years ago
committed by Gerrit Code Review
parent
commit
d73b446a41
  1. 2
      heat/engine/stack.py
  2. 2
      heat/objects/raw_template.py

2
heat/engine/stack.py

@ -1386,7 +1386,7 @@ class Stack(collections.Mapping):
def _get_best_existing_rsrc_db(self, rsrc_name):
candidate = None
if self.ext_rsrcs_db:
for id, ext_rsrc in self.ext_rsrcs_db.items():
for ext_rsrc in self.ext_rsrcs_db.values():
if ext_rsrc.name != rsrc_name:
continue
if ext_rsrc.current_template_id == self.t.id:

2
heat/objects/raw_template.py

@ -89,7 +89,7 @@ class RawTemplate(
@classmethod
def encrypt_hidden_parameters(cls, tmpl):
if cfg.CONF.encrypt_parameters_and_properties:
for param_name, param in tmpl.env.params.items():
for param_name in tmpl.env.params.keys():
if not tmpl.param_schemata()[param_name].hidden:
continue
clear_text_val = tmpl.env.params.get(param_name)

Loading…
Cancel
Save