This repository was archived by the owner on Nov 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments