Compare commits

..

2 Commits
2.3.0 ... 2.4.0

Author SHA1 Message Date
Shivam Shukla
00d6e14b73 Replace Legacy Callable Formatter Functions
osc-lib 4.x introduced a change that removed support for legacy
callable functions used as formatters in CLI output.
The python-tackerclient code still uses such deprecated formatters,
which leads to the Invalid Formatter Provided error when used with
osc-lib>=4.0.0.

Replace these legacy callable formatters with compatible formatter
classes provided by osc_lib.cli.format_columns.

Closes-Bug: https://bugs.launchpad.net/tacker/+bug/2118585
Change-Id: Idc2a3be9fe709942904f472b7728e095ded92b19
Signed-off-by: Shivam Shukla <shivam.shukla3@india.nec.com>
2025-07-25 10:37:54 +00:00
c2bdc92c2e Update master for stable/2025.1
Add file to the reno documentation build to show release notes for
stable/2025.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2025.1.

Sem-Ver: feature
Change-Id: I722af142750abbecad34d8956c1b4f2fc23455a4
2025-03-07 14:36:12 +00:00
3 changed files with 11 additions and 3 deletions

View File

@@ -0,0 +1,6 @@
===========================
2025.1 Series Release Notes
===========================
.. release-notes::
:branch: stable/2025.1

View File

@@ -7,6 +7,7 @@ Contents:
:maxdepth: 2
unreleased
2025.1
2024.2
2024.1
2023.2

View File

@@ -16,6 +16,7 @@
import yaml
from osc_lib.cli import format_columns
from osc_lib.command import command
from osc_lib import utils
from oslo_utils import strutils
@@ -258,9 +259,9 @@ class UpdateVIM(command.ShowOne):
_formatters = {
'auth_cred': tacker_osc_utils.format_dict_with_indention,
'placement_attr': tacker_osc_utils.format_dict_with_indention,
'vim_project': tacker_osc_utils.format_dict_with_indention,
'auth_cred': format_columns.DictColumn,
'placement_attr': format_columns.DictColumn,
'vim_project': format_columns.DictColumn,
}