Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

discovery_config_targets.network_address_detail can't handle unknown in OME Discovery Resource #136

Open
Krishnan-Priyanshu opened this issue Jan 28, 2025 · 0 comments
Assignees

Comments

@Krishnan-Priyanshu
Copy link
Collaborator

Additionally, I attempted to change the network_address_detail attribute to using the list of IP addresses but that resulted in a different error -- should I file a separate bug report?


│ Error: Value Conversion Error
│ 
│   with ome_discovery.non_production,
│   on dome-discovery.tf line 7, in resource "ome_discovery" "non_production":
│    7:   discovery_config_targets = [
│    8:     {
│   10:       network_address_detail = slice(local.non_production_drac_ip_addresses, 0, 10)
│   11:       device_type            = ["SERVER"]
│   12:       wsman = {
│   13:         username = "<redacted>"
│   14:         password = "<redacted>"
│   15:       }
│   16:   }]
│ 
│ An unexpected error was encountered trying to build a value. This is always an error in the provider. Please report the following to the provider developer:
│ 
│ Received unknown value, however the target type cannot handle unknown values. Use the corresponding `types` package type or a custom type that handles unknown values.
│ 
│ Path: discovery_config_targets[Value({"device_type":["SERVER"],"network_address_detail":<unknown>,"redfish":<null>,"snmp":<null>,"ssh":<null>,"wsman":{"ca_check":<null>,"cn_check":<null>,"password":"openadmin","port":<null>,"retries":<null>,"timeout":<null>,"username":"<redacted>"}})].network_address_detail
│ Target Type: []basetypes.StringValue
│ Suggested Type: basetypes.ListValue

Originally posted by @cacack in #135

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants