Skip to content
Snippets Groups Projects
Commit 0638f7e2 authored by Yas Naoi's avatar Yas Naoi
Browse files

Updated.

parent b5a2cce6
No related branches found
No related tags found
No related merge requests found
......@@ -121,16 +121,16 @@ function _aws_ec2_lib_download_describe_snapshots($cloud_context) {
db_query('delete from {' . $ec2_lib_snapshot_table . '} where cloud_type = \'%s\'', array($cloud_context));
$insert_query = 'INSERT INTO {' . $ec2_lib_snapshot_table . '}
( `snapshot_id` ,
`cloud_type` ,
`nickname` ,
`volume_id` ,
`status` ,
`created` ,
`progress` ,
`owner_id` ,
`volume_size` ,
`description`
( `snapshot_id` ,
`cloud_type` ,
`nickname` ,
`volume_id` ,
`status` ,
`created` ,
`progress` ,
`owner_id` ,
`volume_size` ,
`description`
) values
';
......@@ -198,16 +198,16 @@ function _aws_ec2_lib_save_create_snapshot($cloud_context, $myclient, $ss_name,
$obj_response = new SimpleXMLElement($myclient->data);
$insert_query = 'INSERT INTO {' . $ec2_lib_snapshot_table . '}
( `snapshot_id` ,
`cloud_type` ,
`nickname` ,
`volume_id` ,
`status` ,
`created` ,
`progress` ,
`owner_id` ,
`volume_size` ,
`description`
( `snapshot_id` ,
`cloud_type` ,
`nickname` ,
`volume_id` ,
`status` ,
`created` ,
`progress` ,
`owner_id` ,
`volume_size` ,
`description`
) values
';
......@@ -215,7 +215,7 @@ function _aws_ec2_lib_save_create_snapshot($cloud_context, $myclient, $ss_name,
$insert_query = $insert_query . " ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s') " ;
$query_args[] = $item->snapshotId ;
$query_args[] = $cloud_context;
$query_args[] = $cloud_context ;
$query_args[] = $ss_name ;
$query_args[] = $item->volumeId ;
$query_args[] = $item->status ;
......@@ -334,9 +334,9 @@ function _aws_ec2_lib_snapshot_update($cloud_context , $snapshot_id , $sql_col ,
';
$query_args = array(
$sql_col ,
$value ,
$snapshot_id ,
$sql_col ,
$value ,
$snapshot_id ,
$cloud_context,
) ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment