ソースを参照

Comment on Subnet label deletion

almahmoud 7 年 前
コミット
24d5b1f0e7
1 ファイル変更3 行追加0 行削除
  1. 3 0
      cloudbridge/cloud/providers/azure/services.py

+ 3 - 0
cloudbridge/cloud/providers/azure/services.py

@@ -1043,6 +1043,9 @@ class AzureSubnetService(BaseSubnetService):
     def delete(self, subnet):
         subnet_id = subnet.id if isinstance(subnet, Subnet) else subnet
         self.provider.azure_client.delete_subnet(subnet_id)
+        # Although Subnet doesn't support labels, we use the parent Network's
+        # tags to track the subnet's labels, thus that network-level tag must
+        # be deleted with the subnet
         network = subnet._network
         az_network = network._network
         az_network.tags.pop(subnet.tag_name)