[yast-commit] r52807 - /trunk/nfs-client/src/Nfs.ycp
Author: kmachalkova Date: Fri Oct 31 16:45:04 2008 New Revision: 52807 URL: http://svn.opensuse.org/viewcvs/yast?rev=52807&view=rev Log: Correct backwards compatibility code if 'vfstype' key is missing on Import (#438497) Modified: trunk/nfs-client/src/Nfs.ycp Modified: trunk/nfs-client/src/Nfs.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/nfs-client/src/Nfs.ycp?rev=52807&r1=52806&r2=52807&view=diff ============================================================================== --- trunk/nfs-client/src/Nfs.ycp (original) +++ trunk/nfs-client/src/Nfs.ycp Fri Oct 31 16:45:04 2008 @@ -107,7 +107,7 @@ global define boolean Import (list<map> settings) ``{ boolean missing = false; - foreach(map s,settings,``{ + settings = maplist(map s,settings,``{ foreach (string k, ["server_path", "mount_point", "nfs_options"], ``{ if (! haskey (s, k)) { @@ -124,6 +124,7 @@ { s["vfstype"] = "nfs"; } + return s; }); if (missing) @@ -131,7 +132,6 @@ return false; } - Set(settings); return true; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
kmachalkova@svn.opensuse.org