Skip to content

Commit 3d421e7

Browse files
committed
Move utils to its own module
Prepare migration of each action function to its own module.
1 parent 2743424 commit 3d421e7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ def wrapper(qube, action):
368368

369369

370370
class DriveAction(argparse.Action):
371-
"""Action for argument parser that stores drive image path."""
371+
"""Action for argument parser that stores drive image path.
372+
Intended use for device attachment before domain is started."""
372373

373374
# pylint: disable=redefined-builtin
374375
def __init__(
@@ -392,7 +393,7 @@ def __call__(self, parser, namespace, values, option_string=None):
392393
def get_drive_assignment(app, drive_str):
393394
"""
394395
Prepare :py:class:`qubesadmin.device_protocol.DeviceAssignment` object for a
395-
given drive.
396+
given drive. Intended to be used during before domain is started.
396397
397398
If running in dom0, it will also take care about creating the appropriate
398399
loop device (if necessary). Otherwise, only existing block devices are
@@ -490,7 +491,7 @@ def start_expert(
490491
domain, skip_if_running: bool = False, drive: str | None = None
491492
):
492493
"""
493-
Providing a drive in argument is not required.
494+
Start the domain, optionally specifying a drive.
494495
"""
495496
if domain.is_running():
496497
if skip_if_running:

0 commit comments

Comments
 (0)