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

Commit e285f68

Browse files
committed
VirtualDisk: Make __creating_storage helper public
1 parent 7e107ef commit e285f68

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

virtinst/VirtualDisk.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ def _get_selinux_label(self):
901901
retlabel = self._selinux_label
902902
if not retlabel:
903903
retlabel = ""
904-
if self.__creating_storage() and not self.__managed_storage():
904+
if self.creating_storage() and not self.__managed_storage():
905905
retlabel = self._expected_security_label()
906906
else:
907907
retlabel = self._storage_security_label()
@@ -989,7 +989,7 @@ def __set_format(self):
989989
if not self.format:
990990
return
991991

992-
if not self.__creating_storage():
992+
if not self.creating_storage():
993993
return
994994

995995
if self.vol_install:
@@ -1007,7 +1007,7 @@ def __existing_storage_size(self):
10071007
"""
10081008
Return size of existing storage
10091009
"""
1010-
if self.__creating_storage():
1010+
if self.creating_storage():
10111011
return
10121012

10131013
if self.vol_object:
@@ -1110,7 +1110,7 @@ def __get_default_driver(self):
11101110
drvtype = _qemu_sanitize_drvtype(self.type,
11111111
self.vol_install.format)
11121112

1113-
elif self.__creating_storage():
1113+
elif self.creating_storage():
11141114
if drvname == self.DRIVER_QEMU:
11151115
drvtype = self.DRIVER_QEMU_RAW
11161116

@@ -1130,7 +1130,7 @@ def __managed_storage(self):
11301130
self.vol_install != None or
11311131
self._pool_object != None)
11321132

1133-
def __creating_storage(self):
1133+
def creating_storage(self):
11341134
"""
11351135
Return True if the user requested us to create a device
11361136
"""
@@ -1219,7 +1219,7 @@ def __validate_params(self):
12191219
# - Do we need to create the storage?
12201220

12211221
managed_storage = self.__managed_storage()
1222-
create_media = self.__creating_storage()
1222+
create_media = self.creating_storage()
12231223

12241224
self.__set_format()
12251225

@@ -1424,7 +1424,7 @@ def setup(self, progresscb=None):
14241424
if not progresscb:
14251425
progresscb = progress.BaseMeter()
14261426

1427-
if self.__creating_storage() or self.clone_path:
1427+
if self.creating_storage() or self.clone_path:
14281428
self._do_create_storage(progresscb)
14291429

14301430
# Relabel storage if it was requested
@@ -1540,7 +1540,7 @@ def is_size_conflict(self):
15401540
if self.vol_install:
15411541
return self.vol_install.is_size_conflict()
15421542

1543-
if not self.__creating_storage():
1543+
if not self.creating_storage():
15441544
return (False, None)
15451545

15461546
ret = False

0 commit comments

Comments
 (0)