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

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



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


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