backend/remote-state/oss: Prepend bucket name to LockID

To allow using the same Tablestore table with multiple OSS buckets.

e.g. instead of env:/some/path/terraform.tfstate

the LockID now becomes some-bucket/env:/some/path/terraform.tfstate
This commit is contained in:
Mathias Lafeldt 2020-02-18 10:48:53 +01:00
parent 3b3739b0ca
commit b4a735779c
No known key found for this signature in database
GPG Key ID: 15F939C6FE84FECF
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ func (c *RemoteClient) Lock(info *state.LockInfo) (string, error) {
Columns: []tablestore.AttributeColumn{
{
ColumnName: "LockID",
Value: c.lockFile,
Value: c.lockPath(),
},
{
ColumnName: "Info",