Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

html escape unused variables

  • Loading branch information...
commit 3bea74c29b84066168cde23d6c13e623e4f769b2 1 parent 4480e5c
@heroldus heroldus authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/config_rpm_maker/hostRpmBuilder.py
View
4 src/config_rpm_maker/hostRpmBuilder.py
@@ -117,7 +117,9 @@ def configviewer_token_replacer (token, replacement):
token_replacer = TokenReplacer.filter_directory(self.config_viewer_host_dir, self.variables_dir, html_escape=True, replacer_function=configviewer_token_replacer)
tokens_unused = set(token_replacer.token_values.keys()) - token_replacer.token_used
- self._write_file(os.path.join(self.config_viewer_host_dir, 'unused_variables.txt'), '\n'.join(tokens_unused))
+ path_to_unused_variables = os.path.join(self.config_viewer_host_dir, 'unused_variables.txt')
+ self._write_file(path_to_unused_variables, '\n'.join(sorted(tokens_unused)))
+ token_replacer.filter_file(path_to_unused_variables, html_escape=True)
def _write_revision_file_for_config_viewer(self):
self._write_file(os.path.join(self.config_viewer_host_dir, self.hostname + '.rev'), self.revision)
Please sign in to comment.
Something went wrong with that request. Please try again.