Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
interface-openstack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
4
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
abe7a473
authored
Jul 18, 2019
by
Bodor Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix image file upload and download
parent
5d471157
Pipeline
#784
failed with stage
in 39 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
implementation/image/openstack_image_manager.py
+2
-2
interface/image/image_manager.py
+0
-8
No files found.
implementation/image/openstack_image_manager.py
View file @
abe7a473
...
...
@@ -34,8 +34,8 @@ class OpenstackImageManager(ImageManager, OpenStackConnection):
return
self
.
os_image_to_rc_image
(
os_image
)
def
download
(
self
,
id
):
return
self
.
openstack
.
image
.
download_image
(
i
d
)
def
download
(
self
,
id
,
path
):
return
self
.
openstack
.
image
.
download_image
(
i
mage
=
id
,
output
=
path
)
def
delete
(
self
,
id
)
->
bool
:
try
:
...
...
interface/image/image_manager.py
View file @
abe7a473
class
ImageManager
:
def
__init__
(
self
)
->
None
:
super
()
.
__init__
()
def
upload_file
(
self
,
name
,
path
,
format
):
raise
NotImplementedError
...
...
@@ -11,11 +8,6 @@ class ImageManager:
def
download
(
self
,
id
):
raise
NotImplementedError
def
download_to_file
(
self
,
id
,
path
):
f
=
open
(
path
,
'wb'
)
f
.
write
(
self
.
download
(
id
))
f
.
close
()
def
delete
(
self
,
id
):
raise
NotImplementedError
...
...
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