Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

[Bug Report] Autoscale example fails when delicensing_cloud_function_config is not specified #222

Closed
pavelrn opened this issue Sep 18, 2023 · 1 comment

Comments

@pavelrn
Copy link
Contributor

pavelrn commented Sep 18, 2023

Describe the bug

When running examples/autoscaling if delicensing_cloud_function_config = null the example fails to run.

Changes to Outputs:
  + EXTERNAL_LB_IP = (known after apply)
╷
│ Error: Error in function call
│ 
│   on .terraform/modules/vmseries/modules/autoscale/main.tf line 203, in locals:
│  203:   name_prefix   = try(var.delicensing_cloud_function_config.name_prefix) == null ? "" : try(var.delicensing_cloud_function_config.name_prefix)
│     ├────────────────
│     │ while calling try(expressions...)
│     │ var.delicensing_cloud_function_config is null
│ 
│ Call to function "try" failed: no expression succeeded:
│ - Attempt to get attribute from null value (at .terraform/modules/vmseries/modules/autoscale/main.tf:203,60-72)
│   This value is null, so it does not have any attributes.
│ 
│ At least one expression must produce a successful result.

Module Version

1.2.3

Terraform version

No response

Expected behavior

Autoscale example runs without error when delicensing_cloud_function_config is not specified (is null)

Current behavior

No response

Anything else to add?

No response

@welcome-to-palo-alto-networks

🎉 Thanks for opening your first issue here! Welcome to the community!

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

No branches or pull requests

2 participants