refactoring
This commit is contained in:
+6
-1
@@ -331,7 +331,12 @@ class ZFS:
|
|||||||
cls._pre_send_sanity_checks(old_snapshot, new_snapshot)
|
cls._pre_send_sanity_checks(old_snapshot, new_snapshot)
|
||||||
print(f" {old_snapshot} -> {new_snapshot}")
|
print(f" {old_snapshot} -> {new_snapshot}")
|
||||||
return CommandRunner.send_stream(
|
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
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user