mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
add addrs.Module.Equal
Mirror the addrs.ModuleInstance.Equal method
This commit is contained in:
parent
bd9cfca794
commit
6ae9013c3f
@ -40,6 +40,10 @@ func (m Module) String() string {
|
||||
return strings.Join(steps, ".")
|
||||
}
|
||||
|
||||
func (m Module) Equal(other Module) bool {
|
||||
return m.String() == other.String()
|
||||
}
|
||||
|
||||
// Child returns the address of a child call in the receiver, identified by the
|
||||
// given name.
|
||||
func (m Module) Child(name string) Module {
|
||||
|
Loading…
Reference in New Issue
Block a user