Move AWSVPC/IPAM check to Go code

The weave script check was broken in an earlier commit.
The Go error message is less specific because it checks more cases.
This commit is contained in:
Bryan Boreham committed 2017-05-13 14:34:29 +01:00
1 parent cce818995a
commit 9f4030cdb6
2 files changed
+3 -4

No files matched your search

+3
View File
@@ -316,6 +316,9 @@ func main() {
if bridgeConfig.AWSVPC && len(config.Password) > 0 {
Log.Fatalf("--awsvpc mode is not compatible with the --password option")
}
if bridgeConfig.AWSVPC && !ipamConfig.Enabled() {
Log.Fatalf("--awsvpc mode requires IPAM enabled")
}
db, err := db.NewBoltDB(dbPrefix)
checkFatal(err)