Code clean up. Fix wrong indentation.

Signed-off-by: Michael Rasmussen <mir@datanom.net>
This commit is contained in:
Michael Rasmussen
2013-10-23 02:47:18 +02:00
committed by Dietmar Maurer
parent dda2651943
commit 86f00da603

View File

@ -64,7 +64,6 @@ my $execute_command = sub {
$cmd = [@ssh_cmd, $target, $method, @params]; $cmd = [@ssh_cmd, $target, $method, @params];
} }
print Dumper($cmd);
eval { eval {
run_command($cmd, outfunc => $output, errfunc => $errfunc, timeout => $timeout); run_command($cmd, outfunc => $output, errfunc => $errfunc, timeout => $timeout);
}; };
@ -214,7 +213,7 @@ my $update_config = sub {
while ((my $option, my $value) = each(%$lun)) { while ((my $option, my $value) = each(%$lun)) {
next if ($option eq 'include' || $option eq 'lun' || $option eq 'Path'); next if ($option eq 'include' || $option eq 'lun' || $option eq 'Path');
if ($lun_opt eq '') { if ($lun_opt eq '') {
$lun_opt .= $option . '=' . $value; $lun_opt = $option . '=' . $value;
} else { } else {
$lun_opt .= ',' . $option . '=' . $value; $lun_opt .= ',' . $option . '=' . $value;
} }
@ -475,3 +474,4 @@ sub get_base {
} }
1; 1;