Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
storagedriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
4
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d167321e
authored
Mar 13, 2014
by
Guba Sándor
Committed by
Őry Máté
Mar 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not check img format before snapshotting
parent
9bda30ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
disk.py
+1
-3
No files found.
disk.py
View file @
d167321e
...
...
@@ -192,10 +192,8 @@ class Disk(object):
''' Creating qcow2 snapshot with base image.
'''
# Check if snapshot type and qcow2 format matchmatch
if
self
.
format
not
in
[
'qcow2'
,
'iso'
]:
raise
Exception
(
'Invalid format:
%
s'
%
self
.
format
)
if
self
.
type
!=
'snapshot'
:
raise
Exception
(
'Invalid type:
%
s'
%
self
.
format
)
raise
Exception
(
'Invalid type:
%
s'
%
self
.
type
)
# Check if file already exists
if
os
.
path
.
isfile
(
self
.
get_path
()):
raise
Exception
(
'File already exists:
%
s'
%
self
.
get_path
())
...
...
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