refactoring
This commit is contained in:
+9
-4
@@ -148,9 +148,9 @@ class ZFSPath:
|
||||
|
||||
def __eq__(self, other: ZFSPath):
|
||||
return (
|
||||
self._elements == other._elements
|
||||
and self._is_snapshot == other._is_snapshot
|
||||
and self._snapshot_name == other._snapshot_name
|
||||
self._elements == other._elements
|
||||
and self._is_snapshot == other._is_snapshot
|
||||
and self._snapshot_name == other._snapshot_name
|
||||
)
|
||||
|
||||
@classmethod
|
||||
@@ -331,7 +331,12 @@ class ZFS:
|
||||
cls._pre_send_sanity_checks(old_snapshot, new_snapshot)
|
||||
print(f" {old_snapshot} -> {new_snapshot}")
|
||||
return CommandRunner.send_stream(
|
||||
[cls._ZFS, *cls._Subcommands.send, str(old_snapshot), str(new_snapshot)]
|
||||
[
|
||||
str(cls._ZFS),
|
||||
*cls._Subcommands.send,
|
||||
str(old_snapshot),
|
||||
str(new_snapshot),
|
||||
]
|
||||
)
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user