Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 3864bb0

Browse files
authored
Undo change to delete EG
1 parent b8f0327 commit 3864bb0

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/deployment/deploy.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -877,18 +877,16 @@ def remove_eventgrid(self) -> None:
877877
)
878878

879879
# Event subscription for version up to 5.1.0
880-
# or 7.1.0
881-
old_subscription_names = ["onefuzz1", "onefuzz1_subscription"]
882-
for old_subscription_name in old_subscription_names:
883-
old_subscription_exists = Client.event_subscription_exists(
884-
event_grid_client, src_resource_id, old_subscription_name
885-
)
880+
old_subscription_name = "onefuzz1"
881+
old_subscription_exists = Client.event_subscription_exists(
882+
event_grid_client, src_resource_id, old_subscription_name
883+
)
886884

887-
if old_subscription_exists:
888-
logger.info("removing deprecated event subscription")
889-
event_grid_client.event_subscriptions.begin_delete(
890-
src_resource_id, old_subscription_name
891-
).wait()
885+
if old_subscription_exists:
886+
logger.info("removing deprecated event subscription")
887+
event_grid_client.event_subscriptions.begin_delete(
888+
src_resource_id, old_subscription_name
889+
).wait()
892890

893891
def add_instance_id(self) -> None:
894892
logger.info("setting instance_id log export")

0 commit comments

Comments
 (0)