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
662f421c
authored
Feb 06, 2021
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update disk.py
parent
b2bea118
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
disk.py
+2
-2
No files found.
disk.py
View file @
662f421c
...
...
@@ -104,7 +104,7 @@ class Disk(object):
""" Create disk from path
"""
path
=
os
.
path
.
realpath
(
dir
+
'/'
+
name
)
output
=
subprocess
.
check_output
([
'qemu-img'
,
'info'
,
path
])
output
=
subprocess
.
check_output
([
'qemu-img'
,
'info'
,
'--force'
,
path
])
type
=
'normal'
base_name
=
None
...
...
@@ -127,7 +127,7 @@ class Disk(object):
"""Create disk from path."""
path
=
os
.
path
.
realpath
(
dir
+
'/'
+
name
)
output
=
subprocess
.
check_output
(
[
'qemu-img'
,
'info'
,
'--output=json'
,
path
])
[
'qemu-img'
,
'info'
,
'--
force'
,
'--
output=json'
,
path
])
disk_info
=
json
.
loads
(
output
)
name
=
name
format
=
disk_info
.
get
(
'format'
)
...
...
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