We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Use of single quotes in the bigip_command resource cause unexpected behaviour. For example:
resource "bigip_command" "hello-world" { commands = ["bash -c 'echo hello world'"] } output "tmsh-test-result" { description = "Test" value = bigip_command.hello-world.command_result }
The result should contain hello world.
hello world
The result is an empty string.
The text was updated successfully, but these errors were encountered:
The root cause appears to be unsafe quoting here
terraform-provider-bigip/bigip/resource_bigip_command.go
Line 64 in d1eabd0
The possibility that the string itself contains a single quote does not appear to be handled leading to our issue.
Sorry, something went wrong.
I assume that if the input contained only 1 single quote you'd end up with a syntax error but I haven't tested.
Hi,
Thanks for reporting. Added to the backlog and internal tracking ID for this request is: INFRAANO-1675.
Successfully merging a pull request may close this issue.
Environment
Summary
Use of single quotes in the bigip_command resource cause unexpected behaviour. For example:
Steps To Reproduce
Expected Behavior
The result should contain
hello world
.Actual Behavior
The result is an empty string.
The text was updated successfully, but these errors were encountered: