Skip to content

Commit 578cab3

Browse files
authored
{Core} Fix incorrect _get_message and _get_tag in MergedStatusTag (#31574)
1 parent 1f27224 commit 578cab3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/azure-cli-core/azure/cli/core/breaking_change.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ def __init__(self, cli_ctx, *tags):
106106
self.tags = list(tags)
107107

108108
def _get_merged_tag(self):
109-
return ''.join({tag._get_tag(self) for tag in self.tags}) # pylint: disable=protected-access
109+
return ''.join({tag._get_tag(tag) for tag in self.tags}) # pylint: disable=protected-access
110110

111111
def _get_merged_msg(self):
112-
return '\n'.join({tag._get_message(self) for tag in self.tags}) # pylint: disable=protected-access
112+
return '\n'.join({tag._get_message(tag) for tag in self.tags}) # pylint: disable=protected-access
113113

114114
super().__init__(cli_ctx, tag.object_type, tag.target, tag_func=_get_merged_tag,
115115
message_func=_get_merged_msg, color=tag._color)

0 commit comments

Comments
 (0)