repository_tool: sort the list of roles in dirty_roles()

By sorting this printed list we make the output much easier to compare,
whether by eye (as in users following the tutorial) or programatically.

Signed-off-by: Joshua Lock <jlock@vmware.com>
This commit is contained in:
Joshua Lock 2019-11-28 22:02:43 +00:00
parent 282c9aa98b
commit ff21b36d3b

View file

@ -446,7 +446,7 @@ def dirty_roles(self):
None.
"""
logger.info('Dirty roles: ' + str(tuf.roledb.get_dirty_roles(self._repository_name)))
logger.info('Dirty roles: ' + str(sorted(tuf.roledb.get_dirty_roles(self._repository_name))))