[PATCH] The createSuggested methods have changed name (#791204, #795058).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 pyanaconda/iw/lvm_dialog_gui.py |    8 +++++---
 pyanaconda/iw/partition_gui.py  |    2 +-
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/pyanaconda/iw/lvm_dialog_gui.py b/pyanaconda/iw/lvm_dialog_gui.py
index d2b6b0b..abc47e8 100644
--- a/pyanaconda/iw/lvm_dialog_gui.py
+++ b/pyanaconda/iw/lvm_dialog_gui.py
@@ -462,7 +462,8 @@ class VolumeGroupEditor:
             if lv['name']:
                 lvnameentry.set_text(lv['name'])
             else:
-                lvnameentry.set_text(self.storage.createSuggestedLVName(self.getTempVG()))
+                lvnameentry.set_text(self.storage.suggestDeviceName(parent=self.getTempVG(),
+                                                                    prefix="lv"))
 
             # Logical Volume size label & entry
             lvsizelabel = createAlignedLabel(_("_Size (MB):"))
@@ -868,7 +869,7 @@ class VolumeGroupEditor:
 	    return
 
         tempvg = self.getTempVG()
-        name = self.storage.createSuggestedLVName(tempvg)
+        name = self.storage.suggestDeviceName(parent=tempvg, prefix="lv")
         format = getFormat(self.storage.defaultFSType)
         self.lvs[name] = {'name': name,
                           'size': free,
@@ -1375,7 +1376,8 @@ class VolumeGroupEditor:
             if not self.isNew:
                 self.volnameEntry.set_text(self.vg.name)
             else:
-                self.volnameEntry.set_text(self.storage.createSuggestedVGName(anaconda.network.hostname))
+                self.volnameEntry.set_text(self.storage.suggestContainerName(hostname=anaconda.network.hostname,
+                                                                             prefix="vg"))
         else:
             lbl = createAlignedLabel(_("Volume Group Name:"))
             self.volnameEntry = gtk.Label(self.vg.name)
diff --git a/pyanaconda/iw/partition_gui.py b/pyanaconda/iw/partition_gui.py
index 3608159..3a6eb5f 100644
--- a/pyanaconda/iw/partition_gui.py
+++ b/pyanaconda/iw/partition_gui.py
@@ -1783,7 +1783,7 @@ class PartitionWindow(InstallWindow):
             vgeditor = l_d_g.VolumeGroupEditor(self.anaconda, self.intf, self.parent,
                     vg, isNew = False)
             tempvg = vgeditor.getTempVG()
-            name = self.storage.createSuggestedLVName(tempvg)
+            name = self.storage.suggestDeviceName(parent=tempvg, prefix="lv")
             format = getFormat(self.storage.defaultFSType)
             vgeditor.lvs[name] = {'name': name,
                               'size': vg.freeSpace,
-- 
1.7.8.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux