Compare commits
No commits in common. "c1b9b3faa4131b27c094ca03079962f3643fb258" and "0b9714ce10d5a445b653f39fa2cdd6384ced86c3" have entirely different histories.
c1b9b3faa4
...
0b9714ce10
1 changed files with 0 additions and 7 deletions
|
|
@ -51,15 +51,8 @@ func main() {
|
||||||
} else if state == "deleted" {
|
} else if state == "deleted" {
|
||||||
kv.DeleteInDB(DB, "vpc/"+*name)
|
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:
|
default:
|
||||||
fmt.Printf("Available commande:\n - create\n - delete\n - check\n")
|
fmt.Printf("Available commande:\n - create\n - delete\n - check\n")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
os.Exit(0)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue