Skip to content

Commit 711790a

Browse files
authored
Merge pull request kubernetes#85704 from yliaog/windep
catch the exception raised in Remove-HnsPolicyList
2 parents 2eda472 + bbc49d6 commit 711790a

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)