mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-24 08:00:17 -06:00
addrs: OutputValue.InModule
Similar to other address types, this wraps the receiver up in its associated "config" type, binding it to a particular not-yet-expanded module.
This commit is contained in:
parent
209b8de7a5
commit
696b403bf3
@ -32,6 +32,15 @@ func (v OutputValue) Absolute(m ModuleInstance) AbsOutputValue {
|
||||
}
|
||||
}
|
||||
|
||||
// InModule converts the receiver into a config address within the given
|
||||
// module.
|
||||
func (v OutputValue) InModule(m Module) ConfigOutputValue {
|
||||
return ConfigOutputValue{
|
||||
Module: m,
|
||||
OutputValue: v,
|
||||
}
|
||||
}
|
||||
|
||||
// AbsOutputValue is the absolute address of an output value within a module instance.
|
||||
//
|
||||
// This represents an output globally within the namespace of a particular
|
||||
|
Loading…
Reference in New Issue
Block a user