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

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



On 05/13/2010 05:17 PM, David Cantrell wrote:
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(":")


Ack.


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