HomeDevCentral

Sort jails.flatlist output by alphabetical order

Description

Sort jails.flatlist output by alphabetical order

Summary:
This issue make unit test fails on Python 2
(works on Python 3 but currently _modules/ use Python 2 .iteritems()).

This is a follow-up for cd3273b0.

Test Plan:
This fixes the following test issue:

======================================================================
FAIL: test_flatlist (test_jails.Testinstance)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/home/dereckson/dev/nasqueron/ops/repo/_tests/modules/test_jails.py", line 36, in test_flatlist
    self.assertEqual("guest1 guest2", jails.flatlist())
AssertionError: 'guest1 guest2' != 'guest2 guest1'

Reviewers: dereckson

Differential Revision: https://devcentral.nasqueron.org/D1262

Details

Provenance
derecksonAuthored on Nov 24 2017, 04:49
derecksonPushed on Nov 24 2017, 04:51
Differential Revision
D1262: Sort jails.flatlist output by alphabetical order
Parents
rOPSd0958451eb1c: Provide utils/ directory for repo maintenance scripts
Branches
Unknown
Tags
Unknown