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
4b7acc4e
authored
Jul 23, 2019
by
Bodor Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add size attribute to Image
parent
abe7a473
Pipeline
#790
failed with stage
in 41 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
implementation/image/openstack_image_manager.py
+2
-1
interface/image/image.py
+3
-2
No files found.
implementation/image/openstack_image_manager.py
View file @
4b7acc4e
...
...
@@ -14,7 +14,8 @@ class OpenstackImageManager(ImageManager, OpenStackConnection):
return
Image
(
os_image
.
id
,
os_image
.
name
,
os_image
.
disk_format
os_image
.
disk_format
,
os_image
.
size
)
def
upload_file
(
self
,
name
,
path
,
format
)
->
Image
:
...
...
interface/image/image.py
View file @
4b7acc4e
...
...
@@ -2,12 +2,13 @@ import json
class
Image
:
def
__init__
(
self
,
id
,
name
,
f
ormat
=
Non
e
)
->
None
:
def
__init__
(
self
,
id
,
name
,
f
ile_format
,
siz
e
)
->
None
:
super
()
.
__init__
()
self
.
id
=
id
self
.
name
=
name
self
.
format
=
format
self
.
file_format
=
file_format
self
.
size
=
size
def
__str__
(
self
)
->
str
:
return
self
.
toJSON
()
...
...
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