1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

bug #1884: system property of datastores now correctly calculated

This commit is contained in:
Tino Vazquez 2013-04-09 15:57:28 +02:00
parent d42ef854b9
commit 7cc5255ee4
2 changed files with 1 additions and 3 deletions

View File

@ -581,7 +581,7 @@ function datastoreElementArray(element_json){
element.BASE_PATH,
element.TM_MAD,
element.DS_MAD,
element.SYSTEM == '1' ? 'Yes' : 'No'
element.TEMPLATE.TYPE.toUpperCase() == 'SYSTEM_DS' ? 'Yes' : 'No'
];
}

View File

@ -1119,8 +1119,6 @@ function popUpCreateImageDialog(){
$('#file-uploader input',$create_image_dialog).attr('style','margin:0;width:256px!important');
var datastores_str = datastores_sel();
// Get rid of default datastore (51 characters in string)
datastores_str = datastores_str.substring(51,datastores_str.length);
$('#img_datastore',$create_image_dialog).html(datastores_str);
$('#img_datastore_raw',$create_image_dialog).html(datastores_str);