Skip to content

Commit 1284c91

Browse files
committed
mns services3
1 parent d8342ce commit 1284c91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mns_subscription/src/mns_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ def check_subscription(self) -> dict:
9292

9393
def delete_subscription(self, subscription_id: str) -> bool:
9494
"""Delete the subscription by ID."""
95-
url = f"{MNS_URL}/27c13f3b-023d-4a55-a43b-e8b58960a315"
95+
subscription_id = "27c13f3b-023d-4a55-a43b-e8b58960a315"
96+
url = f"{MNS_URL}/{subscription_id}"
9697
response = requests.delete(url, headers=self.request_headers, timeout=10)
9798
if response.status_code == 204:
9899
logging.info(f"Deleted subscription {subscription_id}")

0 commit comments

Comments
 (0)