Skip to content

Commit

Permalink
chore: fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex4386 committed Jun 21, 2021
1 parent f6c97f8 commit b09c34f
Show file tree
Hide file tree
Showing 48 changed files with 108 additions and 107 deletions.
2 changes: 1 addition & 1 deletion API/v1/Console/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async def console_get_by_uuid(
cluster_id: str,
console_uuid: str,
):
""" Get Console by UUID """
"""Get Console by UUID"""
try:
pass

Expand Down
2 changes: 1 addition & 1 deletion API/v1/GuestMetrics/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async def guest_get_by_uuid(
cluster_id: str = Path(default=None, title="cluster_id", description="Cluster ID"),
guest_uuid: str = Path(default=None, title="guest_uuid", description="Guest UUID"),
):
""" Get GuestMetrics by UUID """
"""Get GuestMetrics by UUID"""
try:
session = create_session(
cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
2 changes: 1 addition & 1 deletion API/v1/Host/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async def host_get_by_uuid(
cluster_id: str = Path(default=None, title="cluster_id", description="Cluster ID"),
host_uuid: str = Path(default=None, title="host_uuid", description="Host UUID"),
):
""" Get Host by UUID """
"""Get Host by UUID"""
try:
session = create_session(
cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
2 changes: 1 addition & 1 deletion API/v1/Host/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
async def host_list(
cluster_id: str = Path(default=None, title="cluster_id", description="Cluster ID")
):
""" Get All from Existance Host """
"""Get All from Existance Host"""
try:
session = create_session(
cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
2 changes: 1 addition & 1 deletion API/v1/SR/find.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

@router.post("/{cluster_id}/sr/find")
async def find_cd_by_name(cluster_id: str, args: NameArgs):
""" Find SR by Name """
"""Find SR by Name"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
2 changes: 1 addition & 1 deletion API/v1/SR/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@router.get("/{cluster_id}/sr/{sr_uuid}")
async def sr_get_by_uuid(cluster_id: str, sr_uuid: str):
""" Get SR by UUID """
"""Get SR by UUID"""
try:
session = create_session(
cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
2 changes: 1 addition & 1 deletion API/v1/SR/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

@router.get("/{cluster_id}/sr/list")
async def sr_list(cluster_id: str):
""" Get All from Storage Repos """
"""Get All from Storage Repos"""
try:
session = create_session(
cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
2 changes: 1 addition & 1 deletion API/v1/SR/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

@router.get("/{cluster_id}/sr/{sr_uuid}/scan")
async def sr_scan(cluster_id: str, sr_uuid: str):
""" Scan Storage Repository """
"""Scan Storage Repository"""
try:
session = create_session(
cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
2 changes: 1 addition & 1 deletion API/v1/SR/vdis.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@router.get("/{cluster_id}/sr/{sr_uuid}/vdis")
async def sr_vdis(cluster_id: str, sr_uuid: str):
""" Get VDIs by SR """
"""Get VDIs by SR"""

from API.v1.VDI.serialize import serialize as _vdi_serialize

Expand Down
2 changes: 1 addition & 1 deletion API/v1/VBD/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

@router.post("/{cluster_id}/vbd/create")
async def vbd_create(cluster_id: str, create_args: VBDCreateArgs):
""" Create VBD """
"""Create VBD"""
try:
session = create_session(
cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
2 changes: 1 addition & 1 deletion API/v1/VBD/delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@router.delete("/{cluster_id}/vbd/{vbd_uuid}")
@router.get("/{cluster_id}/vbd/{vbd_uuid}/delete")
async def vbd_delete(cluster_id: str, vbd_uuid: str):
""" Destroy VBD by UUID """
"""Destroy VBD by UUID"""
try:
session = create_session(
cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
2 changes: 1 addition & 1 deletion API/v1/VBD/find_vdi.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@router.get("/{cluster_id}/vbd/find-by-vdi/{vdi_uuid}")
async def vbd_list(cluster_id: str, vdi_uuid: str):
""" Get VBD by UUID """
"""Get VBD by UUID"""

try:
session = create_session(
Expand Down
2 changes: 1 addition & 1 deletion API/v1/VBD/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@router.get("/{cluster_id}/vbd/{vbd_uuid}")
async def vbd_get_by_uuid(cluster_id: str, vbd_uuid: str):
""" Get VBD by UUID """
"""Get VBD by UUID"""
try:
session = create_session(
cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
2 changes: 1 addition & 1 deletion API/v1/VBD/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

@router.get("/{cluster_id}/vbd/list")
async def vbd_list(cluster_id: str):
""" Get VBD by UUID """
"""Get VBD by UUID"""
try:
session = create_session(
cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
4 changes: 2 additions & 2 deletions API/v1/VBD/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

@router.put("/{cluster_id}/vbd/{vbd_uuid}/insert")
async def _vbd_insert_vdi_by_uuid(cluster_id: str, vbd_uuid: str, res: UUIDArgs):
""" Insert VDI into VBD by UUID """
"""Insert VDI into VBD by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down Expand Up @@ -54,7 +54,7 @@ async def _vbd_insert_vdi_by_uuid(cluster_id: str, vbd_uuid: str, res: UUIDArgs)
@router.delete("/{cluster_id}/vbd/{vbd_uuid}/insert")
@router.get("/{cluster_id}/vbd/{vbd_uuid}/eject")
async def vbd_eject_vdi(cluster_id: str, vbd_uuid: str):
""" Eject VDI from VBD """
"""Eject VDI from VBD"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
4 changes: 2 additions & 2 deletions API/v1/VBD/plug.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@router.get("/{cluster_id}/vbd/{vbd_uuid}/plug")
@router.post("/{cluster_id}/vbd/{vbd_uuid}/plug")
async def _vbd_plug(cluster_id: str, vbd_uuid: str):
""" Plug into VBD """
"""Plug into VBD"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down Expand Up @@ -47,7 +47,7 @@ async def _vbd_plug(cluster_id: str, vbd_uuid: str):
@router.get("/{cluster_id}/vbd/{vbd_uuid}/unplug")
@router.post("/{cluster_id}/vbd/{vbd_uuid}/unplug")
async def vbd_unplug(cluster_id: str, vbd_uuid: str):
""" Unplug from VBD """
"""Unplug from VBD"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
2 changes: 1 addition & 1 deletion API/v1/VDI/copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

@router.post("/{cluster_id}/vdi/{vdi_uuid}/copy")
async def vdi_copy(cluster_id: str, vdi_uuid: str, args: SRCopyArgs):
""" Get VDI by UUID """
"""Get VDI by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
2 changes: 1 addition & 1 deletion API/v1/VDI/delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@router.get("/{cluster_id}/vdi/{vdi_uuid}/delete")
@router.delete("/{cluster_id}/vdi/{vdi_uuid}")
async def vdi_get_by_uuid(cluster_id: str, vdi_uuid: str):
""" Delete SR by UUID """
"""Delete SR by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
2 changes: 1 addition & 1 deletion API/v1/VDI/find.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

@router.post("/{cluster_id}/vdi/find")
async def find_VDI_by_name(cluster_id: str, args: NameArgs):
""" Find VDI by Name """
"""Find VDI by Name"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
2 changes: 1 addition & 1 deletion API/v1/VDI/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@router.get("/{cluster_id}/vdi/{vdi_uuid}")
async def vdi_get_by_uuid(cluster_id: str, vdi_uuid: str):
""" Get VDI by UUID """
"""Get VDI by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
2 changes: 1 addition & 1 deletion API/v1/VDI/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

@router.get("/{cluster_id}/vdi/list")
async def vdi_list(cluster_id: str):
""" Get VDI by UUID """
"""Get VDI by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
2 changes: 1 addition & 1 deletion API/v1/VDI/resize.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@router.post("/{cluster_id}/vdi/{vdi_uuid}/resize")
async def vdi_resize(cluster_id: str, vdi_uuid: str, args: SizeArgs):
""" Resize VDI """
"""Resize VDI"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
2 changes: 1 addition & 1 deletion API/v1/VDI/sr.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@router.put("/{cluster_id}/vdi/{vdi_uuid}/sr{url_after:path}")
@router.delete("/{cluster_id}/vdi/{vdi_uuid}/sr{url_after:path}")
async def vdi_get_sr(cluster_id: str, vdi_uuid: str, url_after: str = ""):
""" Redirect To SR """
"""Redirect To SR"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
2 changes: 1 addition & 1 deletion API/v1/VIF/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@router.get("/{cluster_id}/vif/{vif_uuid}")
async def vif_get_by_uuid(cluster_id: str, vif_uuid: str):
""" Get VIF by UUID """
"""Get VIF by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
4 changes: 2 additions & 2 deletions API/v1/VIF/ipv4.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

@router.get("/{cluster_id}/vif/{vif_uuid}/ipv4")
async def vif_get_ipv4_by_uuid(cluster_id: str, vif_uuid: str):
""" Get VIF IPv4 by UUID """
"""Get VIF IPv4 by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down Expand Up @@ -48,7 +48,7 @@ async def vif_get_ipv4_by_uuid(cluster_id: str, vif_uuid: str):

@router.put("/{cluster_id}/vif/{vif_uuid}/ipv4")
async def vif_set_ipv4_by_uuid(cluster_id: str, vif_uuid: str, data: IPModel):
""" Set VIF IPv4 Data by UUID """
"""Set VIF IPv4 Data by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
8 changes: 4 additions & 4 deletions API/v1/VIF/ipv4_allowed.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

@router.get("/{cluster_id}/vif/{vif_uuid}/ipv4/allowed")
async def vif_get_ipv4_by_uuid(cluster_id: str, vif_uuid: str):
""" Get VIF Allowed IPv4 by UUID """
"""Get VIF Allowed IPv4 by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down Expand Up @@ -45,7 +45,7 @@ async def vif_get_ipv4_by_uuid(cluster_id: str, vif_uuid: str):

@router.post("/{cluster_id}/vif/{vif_uuid}/ipv4/allowed")
async def vif_add_ipv4_by_uuid(cluster_id: str, vif_uuid: str, address: IPAddressModel):
""" Add VIF Allowed IPv4 by UUID """
"""Add VIF Allowed IPv4 by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down Expand Up @@ -77,7 +77,7 @@ async def vif_add_ipv4_by_uuid(cluster_id: str, vif_uuid: str, address: IPAddres
async def vif_set_ipv4_by_uuid(
cluster_id: str, vif_uuid: str, addresses: IPAddressesModel
):
""" Set VIF Allowed IPv4 by UUID """
"""Set VIF Allowed IPv4 by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down Expand Up @@ -109,7 +109,7 @@ async def vif_set_ipv4_by_uuid(
async def vif_reset_ipv4_by_uuid(
cluster_id: str, vif_uuid: str, address: IPAddressModel
):
""" Set VIF Allowed IPv4 by UUID """
"""Set VIF Allowed IPv4 by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
4 changes: 2 additions & 2 deletions API/v1/VIF/ipv6.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

@router.get("/{cluster_id}/vif/{vif_uuid}/ipv6")
async def vif_get_ipv6_by_uuid(cluster_id: str, vif_uuid: str):
""" Get VIF IPv6 by UUID """
"""Get VIF IPv6 by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down Expand Up @@ -48,7 +48,7 @@ async def vif_get_ipv6_by_uuid(cluster_id: str, vif_uuid: str):

@router.put("/{cluster_id}/vif/{vif_uuid}/ipv6")
async def vif_set_ipv6_by_uuid(cluster_id: str, vif_uuid: str, data: IPModel):
""" Set VIF IPv6 Data by UUID """
"""Set VIF IPv6 Data by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
8 changes: 4 additions & 4 deletions API/v1/VIF/ipv6_allowed.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

@router.get("/{cluster_id}/vif/{vif_uuid}/ipv6/allowed")
async def vif_get_ipv6_by_uuid(cluster_id: str, vif_uuid: str):
""" Get VIF IPv6 by UUID """
"""Get VIF IPv6 by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down Expand Up @@ -45,7 +45,7 @@ async def vif_get_ipv6_by_uuid(cluster_id: str, vif_uuid: str):

@router.post("/{cluster_id}/vif/{vif_uuid}/ipv6/allowed")
async def vif_add_ipv6_by_uuid(cluster_id: str, vif_uuid: str, address: IPAddressModel):
""" Add VIF IPv6 by UUID """
"""Add VIF IPv6 by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down Expand Up @@ -77,7 +77,7 @@ async def vif_add_ipv6_by_uuid(cluster_id: str, vif_uuid: str, address: IPAddres
async def vif_set_ipv6_by_uuid(
cluster_id: str, vif_uuid: str, addresses: IPAddressesModel
):
""" Set VIF IPv6 by UUID """
"""Set VIF IPv6 by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down Expand Up @@ -109,7 +109,7 @@ async def vif_set_ipv6_by_uuid(
async def vif_reset_ipv6_by_uuid(
cluster_id: str, vif_uuid: str, address: IPAddressModel
):
""" Set VIF IPv6 by UUID """
"""Set VIF IPv6 by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
2 changes: 1 addition & 1 deletion API/v1/VIF/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

@router.get("/{cluster_id}/vif/list")
async def vif_list(cluster_id: str):
""" Get All from Storage Repos """
"""Get All from Storage Repos"""

try:
session = create_session(
Expand Down
6 changes: 3 additions & 3 deletions API/v1/VIF/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

@router.get("/{cluster_id}/vif/{vif_uuid}/lock")
async def vif_get_lock_by_uuid(cluster_id: str, vif_uuid: str):
""" Get VIF Lock by UUID """
"""Get VIF Lock by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand All @@ -42,7 +42,7 @@ async def vif_get_lock_by_uuid(cluster_id: str, vif_uuid: str):

@router.put("/{cluster_id}/vif/{vif_uuid}/lock")
async def vif_set_lock_by_uuid(cluster_id: str, vif_uuid: str, data: ModeModel):
""" Set VIF Lock Data by UUID """
"""Set VIF Lock Data by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down Expand Up @@ -70,7 +70,7 @@ async def vif_set_lock_by_uuid(cluster_id: str, vif_uuid: str, data: ModeModel):

@router.delete("/{cluster_id}/vif/{vif_uuid}/lock")
async def vif_clear_lock_by_uuid(cluster_id: str, vif_uuid: str, data: ModeModel):
""" Clear VIF Lock Data to Default by UUID """
"""Clear VIF Lock Data to Default by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
4 changes: 2 additions & 2 deletions API/v1/VIF/qos.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@router.get("/{cluster_id}/vif/{vif_uuid}/qos")
async def vif_get_qos_by_uuid(cluster_id: str, vif_uuid: str):
""" Set VIF QoS by UUID """
"""Set VIF QoS by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down Expand Up @@ -48,7 +48,7 @@ async def vif_get_qos_by_uuid(cluster_id: str, vif_uuid: str):

@router.put("/{cluster_id}/vif/{vif_uuid}/qos")
async def vif_get_qos_type_by_uuid(cluster_id: str, vif_uuid: str, data: QoSTypeArgs):
""" Set VIF QoS Data by UUID """
"""Set VIF QoS Data by UUID"""
try:
session = create_session(
_id=cluster_id, get_xen_clusters=Settings.get_xen_clusters()
Expand Down
Loading

0 comments on commit b09c34f

Please sign in to comment.