fix typos
This commit is contained in:
+3
-2
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
@@ -710,7 +711,7 @@ class Dataset:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def snapshots(self) -> list[Snapshot]:
|
def snapshots(self) -> list[Snapshot]:
|
||||||
"""get qualified snapshot names that are direct children of the dataset"""
|
"""get qualified snapshots that are direct children of the dataset"""
|
||||||
return ZFS.get_snapshots(self)
|
return ZFS.get_snapshots(self)
|
||||||
|
|
||||||
def replace_pool(self, name: str) -> Dataset:
|
def replace_pool(self, name: str) -> Dataset:
|
||||||
@@ -792,7 +793,7 @@ class CommandRunner:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _to_list(command: str | list[str]) -> list[str]:
|
def _to_list(command: str | list[str]) -> list[str]:
|
||||||
"""If the command is a str, return it as list. Otherwise return the command."""
|
"""If the command is a str, return it as list. Otherwise, return the command."""
|
||||||
if isinstance(command, str):
|
if isinstance(command, str):
|
||||||
return [command]
|
return [command]
|
||||||
return command
|
return command
|
||||||
|
|||||||
Reference in New Issue
Block a user