mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
core: Fix Stringer on OutputState for types
The implementation of Stringer on OutputState previously assumed outputs may only be strings - we now no longer cast to string, instead using the built in formatting directives.
This commit is contained in:
parent
8403a465bc
commit
17f4777039
@ -635,8 +635,7 @@ type OutputState struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *OutputState) String() string {
|
func (s *OutputState) String() string {
|
||||||
// This is a v0.6.x implementation only
|
return fmt.Sprintf("%#v", s.Value)
|
||||||
return fmt.Sprintf("%s", s.Value.(string))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Equal compares two OutputState structures for equality. nil values are
|
// Equal compares two OutputState structures for equality. nil values are
|
||||||
|
Loading…
Reference in New Issue
Block a user