mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
fix btrfs subvolume snapshot
This commit is contained in:
parent
1b719d7c9c
commit
7a00e5c205
1 changed files with 3 additions and 0 deletions
|
@ -1222,6 +1222,9 @@ def subvolume_snapshot(source, dest=None, name=None, read_only=False):
|
|||
cmd = ["btrfs", "subvolume", "snapshot"]
|
||||
if read_only:
|
||||
cmd.append("-r")
|
||||
|
||||
cmd.append(source)
|
||||
|
||||
if dest and not name:
|
||||
cmd.append(dest)
|
||||
if dest and name:
|
||||
|
|
Loading…
Add table
Reference in a new issue