fault/fm-rest-api/fm
Charles Short c9857c8cf4 python3: Fix python3 compatibility issues
- Replace 'range' with six.moves.range.
- Replace 'zip' with six.moves.zip.
- Replace 'map' with six.moves.map.
- Replace dict.keys() with list(dict.keys()) to get a list on Python
  3. On Python 3, dict.keys() now returns a view.
- Fix 'TypeError: unorderable types: NoneType() < int()' for python3
- Python 3 changed the iso8601 module iso8601.iso8601.Utc()
  function to iso8601.UTC.  This is compatible with Python2.7.

Testing:

1. Built new fm-rest-api rpm package.
2. Built new ISO with newer fm-rest-api and installed fine.
3. Checked for an exception in the logs while running "fm event-list".
4. Ran "fm alarm-list" without a problem.

Story: 2006729
Task: 42256

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I2d0f4c2c85ea8057258d56632a102b2eac7db388
(cherry picked from commit b91aaaab90)
2021-08-16 13:10:27 +00:00
..
fm python3: Fix python3 compatibility issues 2021-08-16 13:10:27 +00:00
scripts Fix fm-api service startup 2021-08-16 01:25:31 +00:00
.coveragerc Adding a tox coverage target for fm-rest-api. 2020-02-20 15:52:05 -06:00
.stestr.conf Create test framework for python with stestr. 2020-01-16 16:45:45 +08:00
LICENSE fm-rest-api: Fix LICENSE Permissions 2019-06-13 10:25:41 -07:00
fm-api-pmond.conf Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
requirements.txt [DevStack] WSME doesn't always get installed, force it 2019-04-02 23:27:27 +00:00
setup.cfg Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
setup.py add migrate.cfg to wheel package to install image 2019-05-02 07:58:58 +08:00
test-requirements.txt Attempt to fix zuul jobs from timing out 2021-08-10 07:32:57 -05:00
tox.ini Add auto-versioning to starlingx/fault packages 2020-05-27 15:19:34 -04:00