[PATCH 6/7] Pass ksdata and platform to Storage from run-spoke.py and run-hub.py.

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

 



---
 pyanaconda/ui/gui/tools/run-hub.py   |    7 ++++---
 pyanaconda/ui/gui/tools/run-spoke.py |    7 ++++---
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/pyanaconda/ui/gui/tools/run-hub.py b/pyanaconda/ui/gui/tools/run-hub.py
index 88a75e9..f3aa83c 100755
--- a/pyanaconda/ui/gui/tools/run-hub.py
+++ b/pyanaconda/ui/gui/tools/run-hub.py
@@ -14,6 +14,7 @@ anaconda_log.init()
 
 from pyanaconda.installclass import DefaultInstall
 from pyanaconda.storage import Storage
+from pyanaconda.platform import getPlatform
 from pykickstart.version import makeVersion
 
 # Don't worry with fcoe, iscsi, dasd, any of that crud.
@@ -29,10 +30,10 @@ flags.testing = True
 #hubClass = SummaryHub
 hubClass = None
 
-storage = Storage()
-storage.reset()
-
+platform = getPlatform()
 ksdata = makeVersion()
+storage = Storage(data=ksdata, platform=platform)
+storage.reset()
 devicetree = storage.devicetree
 instclass = DefaultInstall()
 
diff --git a/pyanaconda/ui/gui/tools/run-spoke.py b/pyanaconda/ui/gui/tools/run-spoke.py
index 45eca27..780f219 100755
--- a/pyanaconda/ui/gui/tools/run-spoke.py
+++ b/pyanaconda/ui/gui/tools/run-spoke.py
@@ -14,6 +14,7 @@ anaconda_log.init()
 
 from pyanaconda.installclass import DefaultInstall
 from pyanaconda.storage import Storage
+from pyanaconda.platform import getPlatform
 from pykickstart.version import makeVersion
 
 # Don't worry with fcoe, iscsi, dasd, any of that crud.
@@ -29,10 +30,10 @@ flags.testing = True
 #spokeClass = SoftwareSelectionSpoke
 spokeClass = None
 
-storage = Storage()
-storage.reset()
-
+platform = getPlatform()
 ksdata = makeVersion()
+storage = Storage(data=ksdata, platform=platform)
+storage.reset()
 devicetree = storage.devicetree
 instclass = DefaultInstall()
 
-- 
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