Dynamic block - How to ignore if present but null #1457
Unanswered
SimonSouli
asked this question in
Q&A
Replies: 1 comment
-
In your
This way it will allow for a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I've made a modification on Synapse workspace module in order to get aad_admin, azure devops repo and github repo working.
I now have an issue, as they are not mandatory, but as long as you specify the block (even if null) it's detected as present and waiting for the content.
Below the dynamic block. As you can see if present it will look for content.
One of my try to call it from locals
azure_devops_repo = (var.naming.env=="dev" ? local.azure_devops_repo : {})
and associated local
Regards,
Simon
If it's not dev, i get below error for each attributes:
Any idea on how to modify the condition for the dynamic block in order to allow it ?
Beta Was this translation helpful? Give feedback.
All reactions