update/cgcs-patch/cgcs-patch
João Pedro Alexandroni Cordova de Sousa 65fafcf146 First system load-delete failed after upgrade SX
The load-delete function calls sw-patch del-release function
that tries to delete a 'version' key from a dictionary that
does not exists.

This dictionary is populated looping the folders inside
/www/pages/feed. Each folder is a version imported.
After the upgrade the old version folder is deleted,
the version is not include at the dictionary.

The solution was to verify if this key exists before deleting.

The following tests
Tested load-delete action on a SX system after load-import
Tested load-delete action on a SX system after upgrade-complete

Closes-Bug: 1940302
Signed-off-by: João Pedro Alexandroni Cordova de Sousa <JoaoPedroAlexandroni.CordovadeSouza@windriver.com>
Change-Id: I83f8d144edd53523a98402fbee71dce1507fc79c
2021-08-17 16:00:15 -03:00
..
cgcs_make_patch Fix UNREMOVABLE parsing in make_patch_functions.py 2020-08-17 10:30:07 -04:00
cgcs_patch First system load-delete failed after upgrade SX 2021-08-17 16:00:15 -03:00
cgcs_patch_id Enable Python3 Compatibility 2019-06-06 10:17:52 -04:00
.coveragerc Add initial unit testing to cgcs-patch 2019-06-27 15:46:43 -04:00
.stestr.conf Add initial unit testing to cgcs-patch 2019-06-27 15:46:43 -04:00
LICENSE StarlingX open source release updates 2018-05-31 07:37:12 -07:00
pylint.rc Specify the nodeset zuul jobs 2021-05-28 11:24:04 -04:00
pylint_make_patch.rc Ignore pylint W0707 warnings in cgcs-patch 2020-11-04 12:11:41 -05:00
requirements.txt Add test framework for patch alarm manager 2019-06-28 17:03:00 -04:00
setup.cfg Add initial unit testing to cgcs-patch 2019-06-27 15:46:43 -04:00
setup.py Resolve bashate and pep8 warnings 2018-08-08 19:36:58 -05:00
test-requirements.txt Specify the nodeset zuul jobs 2021-05-28 11:24:04 -04:00
tox.ini Specify the nodeset zuul jobs 2021-05-28 11:24:04 -04:00