mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-09 13:37:15 +00:00
Make pass again.
This commit is contained in:
parent
fa6058afcb
commit
dc43e5992f
1 changed files with 3 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ from ansible.module_utils.basic import AnsibleModule
|
|||
from ansible.module_utils.common.text.converters import to_bytes
|
||||
import re
|
||||
import os
|
||||
import typing as t
|
||||
|
||||
|
||||
def normalize_subvolume_path(path):
|
||||
|
|
@ -44,6 +45,8 @@ class BtrfsCommands:
|
|||
current = self.__parse_filesystem(line)
|
||||
filesystems.append(current)
|
||||
elif line.startswith("devid"):
|
||||
if current is None:
|
||||
raise ValueError("Found 'devid' line without previous 'Label' line")
|
||||
current["devices"].append(self.__parse_filesystem_device(line))
|
||||
return filesystems
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue