mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-18 08:29:14 +00:00
12 lines
275 B
Python
12 lines
275 B
Python
from selfprivacy_api.services import Service
|
|
from selfprivacy_api.utils.block_devices import BlockDevice
|
|
from selfprivacy_api.utils.huey import huey
|
|
|
|
|
|
@huey.task()
|
|
def move_service(
|
|
service: Service,
|
|
new_volume: BlockDevice,
|
|
):
|
|
service.move_to_volume(new_volume)
|