Commit e317dbc0 authored by Felix Seibert's avatar Felix Seibert
Browse files

introduice uuid type check

parent 01dbaa71
......@@ -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 = {}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment