Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
storagedriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
07471700
authored
Jul 21, 2022
by
Karsa Zoltán István
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci beta version
parent
20f8ce8f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
disk.py
+0
-1
storagedriver.py
+3
-0
No files found.
disk.py
View file @
07471700
...
@@ -196,7 +196,6 @@ class Disk(object):
...
@@ -196,7 +196,6 @@ class Disk(object):
def
create_ci_disk
(
self
,
meta_data
,
user_data
):
def
create_ci_disk
(
self
,
meta_data
,
user_data
):
disk_path
=
self
.
get_path
()
disk_path
=
self
.
get_path
()
logger
.
info
(
"Create CI iso to
%
s"
,
disk_path
)
logger
.
info
(
"Create CI iso to
%
s"
,
disk_path
)
print
(
"Create CI iso to
%
s"
,
disk_path
)
with
open
(
self
.
dir
+
'/meta-data'
,
'w'
)
as
f
:
with
open
(
self
.
dir
+
'/meta-data'
,
'w'
)
as
f
:
f
.
write
(
meta_data
)
f
.
write
(
meta_data
)
with
open
(
self
.
dir
+
'/user-data'
,
'w'
)
as
f
:
with
open
(
self
.
dir
+
'/user-data'
,
'w'
)
as
f
:
...
...
storagedriver.py
View file @
07471700
...
@@ -32,6 +32,9 @@ def create(disk_desc):
...
@@ -32,6 +32,9 @@ def create(disk_desc):
def
create_ci_disk
(
disk_desc
,
meta_data
,
user_data
):
def
create_ci_disk
(
disk_desc
,
meta_data
,
user_data
):
disk
=
Disk
.
deserialize
(
disk_desc
)
disk
=
Disk
.
deserialize
(
disk_desc
)
disk
.
create_ci_disk
(
meta_data
=
meta_data
,
user_data
=
user_data
)
disk
.
create_ci_disk
(
meta_data
=
meta_data
,
user_data
=
user_data
)
return
{
'size'
:
disk
.
size
,
'type'
:
disk
.
format
,
'checksum'
:
disk
.
checksum
,
}
class
download
(
AbortableTask
):
class
download
(
AbortableTask
):
...
...
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