Merge "Remove unused variable"

This commit is contained in:
Zuul 2017-12-13 07:28:43 +00:00 committed by Gerrit Code Review
commit d73b446a41
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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)