[PATCH] Swap server and opts on the split() call (#591479)

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

 



This matches the syntax for the repo= parameter when passing an nfs or
nfsiso source:

    repo=nfs[:options]:<server>:/<path>
    repo=nfsiso[:options]:<server>:/<path>
---
 instdata.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/instdata.py b/instdata.py
index c226cd4..8eefcd6 100644
--- a/instdata.py
+++ b/instdata.py
@@ -231,7 +231,7 @@ class InstallData:
                 f.write("harddrive --partition=%s --dir=%s\n" % (part, dir))
             elif m.startswith("nfs:") or m.startswith("nfsiso:"):
                 if m.count(":") == 3:
-                    (method, server, opts, dir) = m.split(":")
+                    (method, opts, server, dir) = m.split(":")
                     f.write("nfs --server=%s --opts=%s --dir=%s" % (server, opts, dir))
                 else:
                     (method, server, dir) = m.split(":")
-- 
1.7.0.1

_______________________________________________
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