Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/prog2
Commit
eb856394
authored
Aug 30, 2016
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm, storage: some small fix
parent
4cbd33d4
Pipeline
#184
passed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
circle/storage/tasks/storage_tasks.py
+2
-2
circle/vm/operations.py
+3
-3
No files found.
circle/storage/tasks/storage_tasks.py
View file @
eb856394
...
@@ -53,8 +53,8 @@ def snapshot_from_base(disk_desc):
...
@@ -53,8 +53,8 @@ def snapshot_from_base(disk_desc):
pass
pass
@celery.task
(
name
=
'storagedriver.snapshot'
)
@celery.task
(
name
=
'storagedriver.
create_
snapshot'
)
def
snapshot
(
disk_desc
,
name
):
def
create_
snapshot
(
disk_desc
,
name
):
pass
pass
...
...
circle/vm/operations.py
View file @
eb856394
...
@@ -307,8 +307,8 @@ class CreateSnapshotDiskOperation(RemoteSnapshotDiskOperation):
...
@@ -307,8 +307,8 @@ class CreateSnapshotDiskOperation(RemoteSnapshotDiskOperation):
name
=
_
(
'create snapshot'
)
name
=
_
(
'create snapshot'
)
description
=
_
(
'Create snapshot from disk.'
)
description
=
_
(
'Create snapshot from disk.'
)
required_perms
=
(
'storage.create_snapshot'
,
)
required_perms
=
(
'storage.create_snapshot'
,
)
accept_states
=
(
'STOPPED'
)
accept_states
=
(
'STOPPED'
,
)
task
=
storage_tasks
.
snapshot
task
=
storage_tasks
.
create_
snapshot
def
_get_remote_args
(
self
,
**
kwargs
):
def
_get_remote_args
(
self
,
**
kwargs
):
snap_name
=
kwargs
.
get
(
'snap_name'
)
snap_name
=
kwargs
.
get
(
'snap_name'
)
...
@@ -351,7 +351,7 @@ class RevertSnapshotDiskOperation(RemoteSnapshotDiskOperation):
...
@@ -351,7 +351,7 @@ class RevertSnapshotDiskOperation(RemoteSnapshotDiskOperation):
name
=
_
(
'revert snapshot'
)
name
=
_
(
'revert snapshot'
)
description
=
_
(
'Revert snapshot on disk.'
)
description
=
_
(
'Revert snapshot on disk.'
)
required_perms
=
(
'storage.revert_snapshot'
,
)
required_perms
=
(
'storage.revert_snapshot'
,
)
accept_states
=
(
'STOPPED'
)
accept_states
=
(
'STOPPED'
,
)
task
=
storage_tasks
.
revert_snapshot
task
=
storage_tasks
.
revert_snapshot
def
_get_remote_args
(
self
,
**
kwargs
):
def
_get_remote_args
(
self
,
**
kwargs
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment