mirror of
https://github.com/dragonheim/gagent.git
synced 2025-04-26 06:58:59 -07:00
fix: changed db destination to programatic instead of hardcoded.
fix: minor cleanup. feat: cleaned up agent hint collection.
This commit is contained in:
parent
13d18d7714
commit
2b0975b30a
3 changed files with 16 additions and 9 deletions
|
@ -50,7 +50,7 @@ func (db *GagentDb) LoadHCL(ChainDBPath string) error {
|
|||
/*
|
||||
* Write the database to an HCL file
|
||||
*/
|
||||
func (db *GagentDb) WriteHCL() error {
|
||||
func (db *GagentDb) WriteHCL(ChainDBPath string) error {
|
||||
f := hclwrite.NewEmptyFile()
|
||||
rootBody := f.Body()
|
||||
|
||||
|
@ -69,7 +69,7 @@ func (db *GagentDb) WriteHCL() error {
|
|||
agentBody.SetAttributeValue("version", cty.StringVal(row.Agent.Shasum))
|
||||
}
|
||||
|
||||
return ioutil.WriteFile("chaindb_out.hcl", f.Bytes(), 0600)
|
||||
return ioutil.WriteFile(ChainDBPath, f.Bytes(), 0600)
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue