Compare commits
No commits in common. "2bbe9b40f73ff6d992ad241bb523bd22b7cda573" and "019ca104e8e6911c5444973706c99105c089773b" have entirely different histories.
2bbe9b40f7
...
019ca104e8
1 changed files with 0 additions and 7 deletions
|
|
@ -51,15 +51,8 @@ func main() {
|
|||
} else if state == "deleted" {
|
||||
kv.DeleteInDB(DB, "vpc/"+*name)
|
||||
}
|
||||
case "check":
|
||||
if state, err := kv.GetFromDB(DB, "vpc/"+*name+"/state"); err != nil {
|
||||
os.Exit(1)
|
||||
} else if state != "created" {
|
||||
os.Exit(1)
|
||||
}
|
||||
default:
|
||||
fmt.Printf("Available commande:\n - create\n - delete\n - check\n")
|
||||
os.Exit(1)
|
||||
}
|
||||
os.Exit(0)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue