mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Python 3 related fix in highstate_return.py
In Python 3 key sets of dicts no longer support indexing: `TypeError: 'dict_keys' object does not support indexing`
This commit is contained in:
parent
10fd4661ff
commit
5e82685b89
1 changed files with 2 additions and 2 deletions
|
@ -185,8 +185,8 @@ def _generate_html_table(data, out, level=0, extra_style=''):
|
|||
else:
|
||||
new_extra_style = extra_style
|
||||
if len(subdata) == 1:
|
||||
name = subdata.keys()[0]
|
||||
value = subdata.values()[0]
|
||||
name = list(subdata.keys())[0]
|
||||
value = list(subdata.values())[0]
|
||||
print('<tr style="{0}">'.format(
|
||||
_lookup_style('tr', [row_style])
|
||||
), file=out)
|
||||
|
|
Loading…
Add table
Reference in a new issue