Update the rest of the shared libs locations

This commit is contained in:
Jeff Mitchell committed 2021-07-14 17:50:15 -07:00
1 parent fccdf80161
commit ed6c59a053
16 files changed
+63 -216

No files matched your search

+5 -5
View File
@@ -10,7 +10,7 @@ import (
"github.com/hashicorp/boundary/sdk/wrapper"
wrapping "github.com/hashicorp/go-kms-wrapping"
"github.com/hashicorp/go-secure-stdlib/mlock"
"github.com/hashicorp/shared-secure-libs/configutil"
"github.com/hashicorp/go-secure-stdlib/parseutil"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)
@@ -239,8 +239,8 @@ func (c *InitCommand) Run(args []string) (retCode int) {
return base.CommandUserError
}
migrationUrl, err := configutil.ParsePath(migrationUrlToParse)
if err != nil && !errors.Is(err, configutil.ErrNotAUrl) {
migrationUrl, err := parseutil.ParsePath(migrationUrlToParse)
if err != nil && !errors.Is(err, parseutil.ErrNotAUrl) {
c.UI.Error(fmt.Errorf("Error parsing migration url: %w", err).Error())
return base.CommandUserError
}
@@ -260,8 +260,8 @@ func (c *InitCommand) Run(args []string) (retCode int) {
c.UI.Error(`"url" not specified in "database" config block`)
return base.CommandUserError
}
c.srv.DatabaseUrl, err = configutil.ParsePath(urlToParse)
if err != nil && !errors.Is(err, configutil.ErrNotAUrl) {
c.srv.DatabaseUrl, err = parseutil.ParsePath(urlToParse)
if err != nil && !errors.Is(err, parseutil.ErrNotAUrl) {
c.UI.Error(fmt.Errorf("Error parsing database url: %w", err).Error())
return base.CommandUserError
}
+3 -3
View File
@@ -9,7 +9,7 @@ import (
"github.com/hashicorp/boundary/sdk/wrapper"
wrapping "github.com/hashicorp/go-kms-wrapping"
"github.com/hashicorp/go-secure-stdlib/mlock"
"github.com/hashicorp/shared-secure-libs/configutil"
"github.com/hashicorp/go-secure-stdlib/parseutil"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)
@@ -181,8 +181,8 @@ func (c *MigrateCommand) Run(args []string) (retCode int) {
return base.CommandUserError
}
migrationUrl, err := configutil.ParsePath(migrationUrlToParse)
if err != nil && !errors.Is(err, configutil.ErrNotAUrl) {
migrationUrl, err := parseutil.ParsePath(migrationUrlToParse)
if err != nil && !errors.Is(err, parseutil.ErrNotAUrl) {
c.UI.Error(fmt.Errorf("Error parsing migration url: %w", err).Error())
return base.CommandUserError
}