Skip to content

Commit

Permalink
Fixed minor issues according to review.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Jul 30, 2013
1 parent 4432132 commit f988c47
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/modules/Nfs.ycp
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,16 @@
}

boolean ValidateAyNfsEntry(map entry) {
boolean missing = false;
boolean valid = true;
foreach (string k, ["server_path", "mount_point", "nfs_options"],
{
if (! haskey (entry, k))
{
y2error ("Missing at Import: '%1'.", k);
missing = true;
valid = false;
}
});
return !missing;
return valid;
}

void GetOptionsAndEntriesSLE11(list<map> settings, map & global_options, list<map<string, any> > & entries) {
Expand Down Expand Up @@ -139,7 +139,7 @@
GetOptionsAndEntriesSLE11((list<map>) any_settings, global_options, entries);
}
else {
y2internal("Cannot happen, got neither a map nor a list");
y2internal("Cannot happen, got neither a map nor a list: %1", any_settings);
}
}

Expand Down Expand Up @@ -186,10 +186,10 @@

nfs_entries = maplist(map entry, entries, ``(
$[
"spec":entry["server_path"]:"",
"file":entry["mount_point"]:"",
"vfstype":entry["vfstype"]:"",
"mntops":entry["nfs_options"]:""
"spec": entry["server_path"]:"",
"file": entry["mount_point"]:"",
"vfstype": entry["vfstype"]:"",
"mntops": entry["nfs_options"]:""
]
));

Expand Down

0 comments on commit f988c47

Please sign in to comment.