mirror of
https://github.com/hashicorp/terraform.git
synced 2026-06-09 00:42:48 -04:00
addrs: AbsLocalValue is a UniqueKeyer
This commit is contained in:
parent
3420fdd516
commit
f1d68e89c0
1 changed files with 15 additions and 0 deletions
|
|
@ -55,3 +55,18 @@ func (v AbsLocalValue) String() string {
|
|||
}
|
||||
return fmt.Sprintf("%s.%s", v.Module.String(), v.LocalValue.String())
|
||||
}
|
||||
|
||||
func (v AbsLocalValue) UniqueKey() UniqueKey {
|
||||
return absLocalValueKey{
|
||||
moduleKey: v.Module.UniqueKey(),
|
||||
valueKey: v.LocalValue.UniqueKey(),
|
||||
}
|
||||
}
|
||||
|
||||
type absLocalValueKey struct {
|
||||
moduleKey UniqueKey
|
||||
valueKey UniqueKey
|
||||
}
|
||||
|
||||
// uniqueKeySigil implements UniqueKey.
|
||||
func (absLocalValueKey) uniqueKeySigil() {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue