Even with html_safe provider account xml output was wrong - there were whitespaces
in x509 certificate and imagefactory failed with error:
Traceback (most recent call last):
File "/usr/bin/euca-bundle-vol", line 492, in <module>
main()
File "/usr/bin/euca-bundle-vol", line 467, in main
ancestor_ami_ids,
File "/usr/lib/python2.7/site-packages/euca2ools/__init__.py", line 994, in
generate_manifest
user_pub_key = X509.load_cert(cert_path).get_pubkey().get_rsa()
File "/usr/lib64/python2.7/site-packages/M2Crypto/X509.py", line 611, in
load_cert
return load_cert_bio(bio)
File "/usr/lib64/python2.7/site-packages/M2Crypto/X509.py", line 639, in
load_cert_bio
raise X509Error(Err.get_error())
This patch is quite dirty, I'm sure there is a nice way how to tweak rails'
'to_xml' method or
use xml builder template but I didn't find a way how to use it properly.
Show replies by thread