Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aws
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
aws
Commits
0638f7e2
Commit
0638f7e2
authored
12 years ago
by
Yas Naoi
Browse files
Options
Downloads
Patches
Plain Diff
Updated.
parent
b5a2cce6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/aws_ec2/aws_ec2_lib_snapshots_db.inc
+24
-24
24 additions, 24 deletions
modules/aws_ec2/aws_ec2_lib_snapshots_db.inc
with
24 additions
and
24 deletions
modules/aws_ec2/aws_ec2_lib_snapshots_db.inc
+
24
−
24
View file @
0638f7e2
...
...
@@ -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
,
)
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment