[ 
https://issues.apache.org/jira/browse/BROOKLYN-270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15299879#comment-15299879
 ] 

Thomas Bouron commented on BROOKLYN-270:
----------------------------------------

[~mike.zaccardo]: I pushed a change to fix the multiline + indentation issue. 
However, I'm still looking at what get sent to the server if we skip the YAML 
preview. It seems that it does not like line breaks.

> 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)

Reply via email to