1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

features #253 & #200: Public attribute can be now defined in downcase.

This commit is contained in:
Carlos Martín 2010-06-11 13:57:49 +02:00 committed by Constantino Vázquez Blanco
parent 82b383878d
commit 4d3a736d91

View File

@ -22,6 +22,8 @@
#include <openssl/evp.h>
#include <iomanip>
#define TO_UPPER(S) transform (S.begin(),S.end(),S.begin(), \
(int(*)(int))toupper)
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
@ -145,6 +147,7 @@ int ImagePool::allocate (
}
img->get_template_attribute("PUBLIC", public_attr);
TO_UPPER( public_attr );
img->image_template.erase("PUBLIC");
img->get_template_attribute("ORIGINAL_PATH", original_path);