YAML generated file encoding issue with Ruby 1.9.3
Created by: pmorillon
When generating yaml file for the reference API :
$ g5k-checks -m api
There is an encoding issue :
block_devices:
sda:
device: sda
size: 600127266816
!binary "bW9kZWw=": !binary |-
U1Q2MDBNTTAwMDY=
!binary "cmV2": !binary |-
TFMwQQ==
sdb:
device: sdb
size: 600127266816
!binary "bW9kZWw=": !binary |-
U1Q2MDBNTTAwMDY=
!binary "cmV2": !binary |-
TFMwQQ==
With Ruby 1.9.3, the default YAML engine is Psych, we can fix this by using the old Engine 'Sick' :
YAML::ENGINE.yamler='syck'
But this engine is removed for Ruby >= 2.0.0...