plugins/meta/flannel: If net config is missing do not return err on DEL

This commit is contained in:
Aaron Levy
2017-03-16 18:46:39 -07:00
parent c235b448d4
commit 74d4cbed76
2 changed files with 13 additions and 0 deletions

View File

@ -140,6 +140,14 @@ FLANNEL_IPMASQ=true
By("check that plugin removes net config from state dir")
Expect(path).ShouldNot(BeAnExistingFile())
By("calling DEL again")
err = testutils.CmdDelWithResult(targetNs.Path(), IFNAME, func() error {
return cmdDel(args)
})
By("check that plugin does not fail due to missing net config")
Expect(err).NotTo(HaveOccurred())
return nil
})
Expect(err).NotTo(HaveOccurred())