Project

General

Profile

Actions

Support #12276

closed

backslash in hash smart variable value craches puppet

Added by Brice Sauvajon over 9 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hi

I've got a hash which defines sudoers entry. The command contains a : so it must be despacialized for sudo. My hash looks like this :

command:
- "/usr/bin/php app/console cron\\:run"

But when I run puppet on the client I've got the error :

Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node lyldsvi33.intranet.atih.sante.fr: Could not load external node results for lyldsvi33.intranet.atih.sante.fr: (<unknown>): found unknown escape character :(58) while scanning a double-quoted scalar at line 574 column 50

Which matches the first backslash of my string.

Actions

Also available in: Atom PDF