[
https://issues.apache.org/jira/browse/BROOKLYN-270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15289199#comment-15289199
]
Thomas Bouron commented on BROOKLYN-270:
----------------------------------------
Humm I see what is going on here. Each configuration key is treated as a basic
string but the {{privateKeyFile}} should be multiline hence prefixed by a {{|}}.
If the text field keep the line breaks, the UI could prepend {{|}} without too
much trouble.
> BYON Location GUI Generates Bad-formatted YAML File
> ---------------------------------------------------
>
> Key: BROOKLYN-270
> URL: https://issues.apache.org/jira/browse/BROOKLYN-270
> Project: Brooklyn
> Issue Type: Bug
> Affects Versions: 0.9.0
> Environment: apache-brooklyn-0.9.0-bin on Mac OS X 10.11.4
> Reporter: Mike Zaccardo
> Labels: byon, gui
>
> When attempting to add a BYON location with a private key file through the
> GUI, the generated YAML file is improperly formatted and results in the
> following error when the user tries to save:
> ERROR Invalid YAML: while scanning a simple key; could not found expected
> ':'; in 'reader', line 12, column 1: vfyF2M3xG3z5MUPuqeCveLhkI/1t26mW ... ^
> The location can only be added after the user manually fixes the formatting
> in the YAML editor view.
> Here is a comparison of generated vs. manually fixed:
> https://gist.github.com/mikezaccardo/34ea0c38b232bf125a059f1b1913c486
> ^^ Note that the private key is a harmless / throwaway from a Vagrant box.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)