Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
storagedriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
02f8e3c3
authored
Jul 30, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add more format to check_type
parent
0377dff6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
disk.py
+2
-1
No files found.
disk.py
View file @
02f8e3c3
...
@@ -128,7 +128,8 @@ class Disk(object):
...
@@ -128,7 +128,8 @@ class Disk(object):
Set the proper type for valid images."""
Set the proper type for valid images."""
format_map
=
[
format_map
=
[
(
"qcow"
,
"qcow2-norm"
),
(
"qcow"
,
"qcow2-norm"
),
(
"iso"
,
"iso"
)
(
"iso"
,
"iso"
),
(
"x86 boot sector"
,
"iso"
)
]
]
with
magic
.
Magic
()
as
m
:
with
magic
.
Magic
()
as
m
:
ftype
=
m
.
id_filename
(
self
.
get_path
())
ftype
=
m
.
id_filename
(
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