F5Networks / terraform-provider-bigip

Terraform resources that can configure F5 BIG-IP products
https://registry.terraform.io/providers/F5Networks/bigip/latest/docs
Mozilla Public License 2.0
105 stars 119 forks source link

Fix handling of single quotes in shell commands #1019

Open alex-harvey-z3q opened 1 month ago

alex-harvey-z3q commented 1 month ago

Previously, if a command in the bigip_command resource contained single quotes, the constructed shell command would have unbalanced quotes, leading to syntax errors and command execution failures. This commit fixes the issue by escaping single quotes within the commands before wrapping them in single quotes. This ensures that all commands are properly formatted and executed, even if they contain single quotes.

RavinderReddyF5 commented 1 month ago

Hi @alex-harvey-z3q, Thanks for your PR.

In order to review and accept your commit, you need to sign a Customer License Agreement and send it to ecosystems_cla@f5.com

https://clouddocs.f5.com/products/orchestration/ansible/devel/_downloads/b35c2904c64e94ec52f5e300bfbebfc4/F5-Contributor-License-Agreement.pdf

RavinderReddyF5 commented 1 month ago

Hi @alex-harvey-z3q, you PR changes are taken through PR: #1025