distcloud-client/distributedcloud-client/dcmanagerclient
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
..
api Fix subcloud fields update 2024-02-29 19:04:20 -03:00
commands Enable R (refactor) checkers on pylint 2024-02-28 18:30:10 +00:00
osc Add debian package for distributedcloud-client 2022-01-24 03:40:20 -03:00
tests Fix subcloud fields update 2024-02-29 19:04:20 -03:00
__init__.py Remove WR License notice from StarlingX distributed cloud client 2021-12-22 13:23:29 -05:00
exceptions.py Enable R (refactor) checkers on pylint 2024-02-28 18:30:10 +00:00
shell.py Enable R (refactor) checkers on pylint 2024-02-28 18:30:10 +00:00
utils.py Enable R (refactor) checkers on pylint 2024-02-28 18:30:10 +00:00