
To avoid conflicts with the --release parameter used to retrieve the software version, this commit changes the sw-deploy positional parameter to release_id. TEST PLAN: PASS - Create a sw-deploy-strategy using <release_id> Failure Path: PASS - Create a sw-deploy-strategy without <release_id> - error: the following arguments are required: release_id Depends-On: https://review.opendev.org/c/starlingx/distcloud/+/923894 Story: 2010676 Task: 50355 Change-Id: Idbbddd95f4a1f9b2a8af812c5856c4da05c12479 Signed-off-by: Hugo Brito <hugo.brito@windriver.com>
17 lines
392 B
Python
17 lines
392 B
Python
#
|
|
# Copyright (c) 2024 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
from dcmanagerclient.api.v1.sw_update_manager import SwUpdateManager
|
|
|
|
SW_UPDATE_TYPE_USM = "sw-deploy"
|
|
|
|
|
|
class SwDeployManager(SwUpdateManager):
|
|
def __init__(self, http_client):
|
|
super().__init__(
|
|
http_client, update_type=SW_UPDATE_TYPE_USM, extra_args=["release_id"]
|
|
)
|