distcloud-client/distributedcloud-client/dcmanagerclient/api
Hugo Brito d847780a4d Fix subcloud fields update
This commit addresses the issue encountered when updating the
subcloud fields directly with a file introduced by [1]. This
caused issues because the file would be closed, making the content
inaccessible. Now, we update the fields using the file content.

An intermittent error, introduced by [2], was fixed in the
test_prestage_with_subcloud_id test.

[1]: https://review.opendev.org/c/starlingx/distcloud-client/+/909454
[2]: https://review.opendev.org/c/starlingx/distcloud-client/+/909975

Test Plan:
PASS: Create a subcloud
PASS: Update a subcloud
PASS: Create a subcloud backup
PASS: Subcloud deploy create
PASS: Subcloud deploy upload

Closes-bug: 2055446

Change-Id: Ib8b831353dba9d073131eb1c12ccd57513c63e7f
Signed-off-by: Hugo Brito <hugo.brito@windriver.com>
2024-02-29 19:04:20 -03:00
..
v1 Fix subcloud fields update 2024-02-29 19:04:20 -03:00
__init__.py Move content to subdir to support relocated packaging 2019-11-04 14:14:38 -05:00
base.py Enable R (refactor) checkers on pylint 2024-02-28 18:30:10 +00:00
client.py Remove WR License notice from StarlingX distributed cloud client 2021-12-22 13:23:29 -05:00
httpclient.py Enable R (refactor) checkers on pylint 2024-02-28 18:30:10 +00:00