Skip to content

Commit

Permalink
adjust spaces, log command before execution
Browse files Browse the repository at this point in the history
  • Loading branch information
gabi2 committed Nov 18, 2014
1 parent fd5aa6d commit 9924e0c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/IscsiClientLib.ycp
Expand Up @@ -439,21 +439,22 @@ global boolean setValue(string name, string value){
string log_value = value;
if (issubstring(name, "password"))
{
if (size(log_value)!=0)
if (size(log_value) != 0)
{
log_value="*****";
log_value = "*****";
}
}
string log_command = sformat("iscsiadm -m node -I %3 -T %1 -p %2 --op=update --name=%4 --value=%5",
currentRecord[1]:"", currentRecord[0]:"", currentRecord[2]:"default",
name, log_value);
y2milestone("Cmd: %1", log_command);

boolean ret = true;
map<string, any> retcode = (map<string, any>) SCR::Execute(.target.bash_output, command);
if (size(retcode["stderr"]:"")>0) {
y2error("%1", retcode["stderr"]:"");
ret = false;
}
y2milestone("Cmd: %1", log_command);
y2milestone("return value %1", ret);
return ret;
}
Expand Down

0 comments on commit 9924e0c

Please sign in to comment.