Adds missing datacenter arg to API client for snapshot commands. (#2466)
This commit is contained in:
parent
109cdc48e0
commit
3d8f6ef1a0
|
@ -69,6 +69,7 @@ func (c *SnapshotRestoreCommand) Run(args []string) int {
|
|||
|
||||
// Create and test the HTTP client
|
||||
conf := api.DefaultConfig()
|
||||
conf.Datacenter = *datacenter
|
||||
conf.Address = *httpAddr
|
||||
conf.Token = *token
|
||||
client, err := api.NewClient(conf)
|
||||
|
|
|
@ -72,6 +72,7 @@ func (c *SnapshotSaveCommand) Run(args []string) int {
|
|||
|
||||
// Create and test the HTTP client
|
||||
conf := api.DefaultConfig()
|
||||
conf.Datacenter = *datacenter
|
||||
conf.Address = *httpAddr
|
||||
conf.Token = *token
|
||||
client, err := api.NewClient(conf)
|
||||
|
|
Loading…
Reference in New Issue