Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Felix Seibert
xtreemfs_client
Commits
e317dbc0
Commit
e317dbc0
authored
Apr 10, 2018
by
Felix Seibert
Browse files
introduice uuid type check
parent
01dbaa71
Changes
1
Hide whitespace changes
Inline
Side-by-side
xtreemfs_client/osd.py
View file @
e317dbc0
...
...
@@ -4,7 +4,9 @@ class OSD(object):
it keeps track of the folders saved on the OSD as well as the size of the folders.
"""
def
__init__
(
self
,
uuid
):
def
__init__
(
self
,
uuid
:
str
):
if
not
isinstance
(
uuid
,
str
):
raise
ValueError
(
"OSD uuid must be str!"
)
self
.
uuid
=
uuid
self
.
total_folder_size
=
0
self
.
folders
=
{}
...
...
Write
Preview
Supports
Markdown
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