Skip to content

Commit 9d32ccc

Browse files
committed
fix deserialize issue in amg notif channel test
1 parent 8372a52 commit 9d32ccc

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/amg/HISTORY.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,7 @@ Release History
127127
++++++
128128
* `az grafana dashboard import`: fix issue with JSON file validation
129129
* `az grafana folder update`: fix issue with overwrite setting
130+
131+
2.5.5
132+
++++++
133+
* `az grafana notification-channel test`: fix issue with test output parsing

src/amg/azext_amg/custom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ def test_notification_channel(cmd, grafana_name, notification_channel, resource_
535535
api_key_or_token=api_key_or_token)
536536
response = _send_request(cmd, resource_group_name, grafana_name, "post", "/api/alert-notifications/test",
537537
data, api_key_or_token=api_key_or_token)
538-
return response
538+
return json.loads(response.content)
539539

540540

541541
def create_folder(cmd, grafana_name, title, resource_group_name=None, api_key_or_token=None, subscription=None):

src/amg/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
# TODO: Confirm this is the right version number you want and it matches your
1818
# HISTORY.rst entry.
19-
VERSION = '2.5.4'
19+
VERSION = '2.5.5'
2020

2121
# The full list of classifiers is available at
2222
# https://pypi.python.org/pypi?%3Aaction=list_classifiers

0 commit comments

Comments
 (0)