feature-8 #9
3 changed files with 3 additions and 3 deletions
f-8: fix: implemente readonly usage #8
All checks were successful
Pre Release Workflow / set-release-target (push) Successful in 1s
Pre Release Workflow / build (agent, amd64, linux) (push) Successful in 1m24s
Pre Release Workflow / build (db, amd64, linux) (push) Successful in 1m31s
Pre Release Workflow / build (meta_cli, amd64, linux) (push) Successful in 1m31s
Pre Release Workflow / build (metadata, amd64, linux) (push) Successful in 1m28s
Pre Release Workflow / prerelease (push) Successful in 12s
All checks were successful
Pre Release Workflow / set-release-target (push) Successful in 1s
Pre Release Workflow / build (agent, amd64, linux) (push) Successful in 1m24s
Pre Release Workflow / build (db, amd64, linux) (push) Successful in 1m31s
Pre Release Workflow / build (meta_cli, amd64, linux) (push) Successful in 1m31s
Pre Release Workflow / build (metadata, amd64, linux) (push) Successful in 1m28s
Pre Release Workflow / prerelease (push) Successful in 12s
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
commit
de7a678640
|
|
@ -136,7 +136,7 @@ func main() {
|
|||
|
||||
DB = kv.InitDB(kv.Config{
|
||||
Path: conf.Database.Path,
|
||||
})
|
||||
}, false)
|
||||
defer DB.Close()
|
||||
|
||||
if len(args) < 1 {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ func main() {
|
|||
|
||||
db := kv.InitDB(kv.Config{
|
||||
Path: conf.Database.Path,
|
||||
})
|
||||
}, false)
|
||||
defer db.Close()
|
||||
|
||||
if *start {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ func getFromDB(config Config) NoCloudData {
|
|||
|
||||
conf_db, _ := configuration.LoadConfig(config.ConfFile)
|
||||
|
||||
db := kv.InitDB(kv.Config{Path: conf_db.Database.Path})
|
||||
db := kv.InitDB(kv.Config{Path: conf_db.Database.Path}, true)
|
||||
defer db.Close()
|
||||
|
||||
metadata, _ := kv.GetFromDB(db, "metadata/"+config.VmName+"/meta-data")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue