Skip to content

Commit bbc49d6

Browse files
committed
catch the exception raised in Remove-HnsPolicyList
1 parent 45f6270 commit bbc49d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cluster/gce/windows/k8s-node-setup.psm1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,9 @@ function Configure-HostNetworkingService {
780780
netsh interface ipv4 set interface "${vnic_name}" forwarding=enabled
781781
}
782782

783-
Get-HNSPolicyList | Remove-HnsPolicyList
783+
Try {
784+
Get-HNSPolicyList | Remove-HnsPolicyList
785+
} Catch { }
784786

785787
# Add a route from the management NIC to the pod CIDR.
786788
#

0 commit comments

Comments
 (0)