Go to file
Cristian Mondo 5ae3fd011e Subcloud show detail command backward compatibility
This commit adds the logic to parse the region_name field returned by the API,
in order to be able to display it in the output of the subcloud show and
subcloud show detail commands according to the release to which the client is
trying to communicate.

Test Plan:
PASS - Run dcmanager subcloud show X
     - Run dcmanager subcloud show --detail X
     - Verify that the region_name field is displayed with that format.

PASS - Get a 24.09 client and connect to a 24.09 System Controller.
     - Run dcmanager subcloud show X
     - Run dcmanager subcloud show --detail X
     - Verify that the region_name field is displayed with that format.

PASS - Get a 24.09 client and connect to a 22.12 System Controller.
     - Run dcmanager subcloud show X
     - Verify that the region_name field is not displayed.
     - Run dcmanager subcloud show X --detail
     - Verify that the region_name field is displayed with that format.

PASS - Get a 22.12 client and connect to a 24.09 System Controller.
     - Run dcmanager subcloud show X
     - Verify that the region_name field is not displayed.
     - Run dcmanager subcloud show X --detail
     - Verify that the region_name field is displayed with that format.

Closes-bug: 2083459

Depends-On: https://review.opendev.org/c/starlingx/distcloud/+/931160

Change-Id: I906b3d10bae543c2601745ebba408b5715316112
Signed-off-by: Cristian Mondo <cristian.mondo@windriver.com>
2024-10-02 12:27:44 -03:00
2019-04-19 19:52:34 +00:00
2018-08-07 11:51:16 -04:00
2018-09-23 16:31:32 +08:00
2024-06-24 09:52:54 -03:00
Description
StarlingX Distributed Cloud Client
5.6 MiB
Languages
Python 99.9%
Makefile 0.1%