update/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
..
bin Clear dnf cache before extracting packages during upgrade-start 2021-07-28 16:33:47 +00:00
centos Fix exclusion paths in cgcs-patch build_srpm.data 2020-12-21 15:22:29 -05:00
cgcs-patch First system load-delete failed after upgrade SX 2021-08-17 16:00:15 -03:00
restart-info.html Cleanup openstack components from patch scripts and tests 2019-04-04 09:39:18 -05:00