how to comment out parts of the packer configuration file?

2,076 views
Skip to first unread message

chris snow

unread,
Jan 25, 2014, 8:04:35 AM1/25/14
to packe...@googlegroups.com
During development of my image, I would like to comment out parts of the json file so that I can switch off things like post-processors.

I've tried commenting out by adding an underscore "_post-processors", but that causes the validation to fail.

Any ideas?

Dave Bettin

unread,
Jan 25, 2014, 12:21:59 PM1/25/14
to packe...@googlegroups.com
The joys of JSON as a configuration facility.  I, too, have the same pain. JSON does not support comments. Unless packer runs a pre-processor on the file, it unfortunately doesn't support comments.


--
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Matthew Hooker

unread,
Jan 25, 2014, 7:00:59 PM1/25/14
to packe...@googlegroups.com
see also the current discussion here https://github.com/mitchellh/packer/issues/283

-- 
Matthew Hooker

Reply all
Reply to author
Forward
0 new messages