Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 7fdc967

Browse files
committed
VirtualDisk: Make get_target_prefix public
1 parent e285f68 commit 7fdc967

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

virtinst/VirtualDisk.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,10 +1675,10 @@ def _security_can_fix(self):
16751675

16761676
return can_fix
16771677

1678-
def _get_target_type(self):
1678+
def get_target_prefix(self):
16791679
"""
1680-
Returns the suggested disk target prefix (hd, xvd, sd ...) from
1681-
the passed parameters.
1680+
Returns the suggested disk target prefix (hd, xvd, sd ...) for the
1681+
disk.
16821682
@returns: str prefix, or None if no reasonable guess can be made
16831683
"""
16841684
# The upper limits here aren't necessarilly 1024, but let the HV
@@ -1711,7 +1711,7 @@ def generate_target(self, skip_targets):
17111711
# Only use these targets if there are no other options
17121712
except_targets = ["hdc"]
17131713

1714-
prefix, maxnode = self._get_target_type()
1714+
prefix, maxnode = self.get_target_prefix()
17151715
if prefix is None:
17161716
raise ValueError(_("Cannot determine device bus/type."))
17171717

0 commit comments

Comments
 (0)