Skip to content

linter incorrectly reporting interpolation of "shell_escape" #39

Closed
@maxadamo

Description

@maxadamo

Describe the Bug

The linter does not detect the shell_escape function, when it's quoted and surrounded by curly brackets.

Expected Behavior

recognize shell_escape as a function and not as a variable to interpolate.

Steps to Reproduce

I was getting a warning about an unsafe interpolation, I added shell_escape as following:

command => "/usr/local/bin/vxlan${shell_escape($vxlan_id)}.sh -f -i ${shell_escape($vxlan_id)}",

but now I get this different type of warning:

WARNING: unsafe interpolation of variable 'shell_escape' in exec command on line 63 (check: check_unsafe_interpolations)

Environment

  • Linter plugin version: 0.0.4
  • Puppet Version: 7.xx
  • Platform Ubuntu 20.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions