Skip to content

Commit

Permalink
chore: i am very sorry
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex4386 committed Mar 10, 2021
1 parent fe5ff47 commit d09c0a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions API/v1/Interface/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class SRCopyArgs(BaseModel):


class QoSTypeArgs(BaseModel):
type: str
info: dict
type: Optional[str]
info: Optional[dict]


class VBDCreateArgs(BaseModel):
Expand Down
8 changes: 4 additions & 4 deletions API/v1/VIF/qos.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ async def vif_get_qos_type_by_uuid(cluster_id: str, vif_uuid: str, data: QoSType
vif: VIF = VIF.get_by_uuid(session=session, uuid=vif_uuid)

result = True
if data["type"] is not None:
vif.set_qos_type(data["type"])
if data.type is not None:
vif.set_qos_type(data.type)

if data["info"] is not None:
vif.set_qos_info(data["info"])
if data.info is not None:
vif.set_qos_info(data.info)

ret = dict(success=True, data=result)

Expand Down

0 comments on commit d09c0a0

Please sign in to comment.