Do not error when a deleted resource is not found
[icn.git] / env / metal3 / 03_launch_prereq.sh
index 9d58f57..7559f2f 100755 (executable)
@@ -154,7 +154,7 @@ function install_dhcp {
 }
 
 function reset_dhcp {
-    kubectl delete -f $PWD/04_dhcp.yaml
+    kubectl delete --ignore-not-found=true -f $PWD/04_dhcp.yaml
     if [ -d $BS_DHCP_DIR ]; then
         rm -rf $BS_DHCP_DIR
     fi