mirror of https://github.com/status-im/consul.git
Adds missing datacenter arg to API client for snapshot commands. (#2466)
This commit is contained in:
parent
15d386c0be
commit
4b5f9115b5
|
@ -69,6 +69,7 @@ func (c *SnapshotRestoreCommand) Run(args []string) int {
|
||||||
|
|
||||||
// Create and test the HTTP client
|
// Create and test the HTTP client
|
||||||
conf := api.DefaultConfig()
|
conf := api.DefaultConfig()
|
||||||
|
conf.Datacenter = *datacenter
|
||||||
conf.Address = *httpAddr
|
conf.Address = *httpAddr
|
||||||
conf.Token = *token
|
conf.Token = *token
|
||||||
client, err := api.NewClient(conf)
|
client, err := api.NewClient(conf)
|
||||||
|
|
|
@ -72,6 +72,7 @@ func (c *SnapshotSaveCommand) Run(args []string) int {
|
||||||
|
|
||||||
// Create and test the HTTP client
|
// Create and test the HTTP client
|
||||||
conf := api.DefaultConfig()
|
conf := api.DefaultConfig()
|
||||||
|
conf.Datacenter = *datacenter
|
||||||
conf.Address = *httpAddr
|
conf.Address = *httpAddr
|
||||||
conf.Token = *token
|
conf.Token = *token
|
||||||
client, err := api.NewClient(conf)
|
client, err := api.NewClient(conf)
|
||||||
|
|
Loading…
Reference in New Issue