Author: mzugec Date: Tue Mar 3 13:23:43 2009 New Revision: 55871 URL: http://svn.opensuse.org/viewcvs/yast?rev=55871&view=rev Log: handle exceptions - thanks to ajohansson@novell.com (bnc#481379) Modified: trunk/iscsi-server/VERSION trunk/iscsi-server/package/yast2-iscsi-server.changes trunk/iscsi-server/src/IscsiServerFunctions.pm Modified: trunk/iscsi-server/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/iscsi-server/VERSION?rev=55871&r1=55870&r2=55871&view=diff ============================================================================== --- trunk/iscsi-server/VERSION (original) +++ trunk/iscsi-server/VERSION Tue Mar 3 13:23:43 2009 @@ -1 +1 @@ -2.18.0 +2.18.1 Modified: trunk/iscsi-server/package/yast2-iscsi-server.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/iscsi-server/package/yast2-iscsi-server.changes?rev=55871&r1=55870&r2=55871&view=diff ============================================================================== --- trunk/iscsi-server/package/yast2-iscsi-server.changes (original) +++ trunk/iscsi-server/package/yast2-iscsi-server.changes Tue Mar 3 13:23:43 2009 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Mar 3 13:18:40 CET 2009 - mzugec@suse.cz + +- handle exceptions - thanks to ajohansson@novell.com (bnc#481379) +- 2.18.1 + +------------------------------------------------------------------- Mon Jan 26 14:52:22 CET 2009 - mzugec@suse.cz - button labeling (bnc#440542) Modified: trunk/iscsi-server/src/IscsiServerFunctions.pm URL: http://svn.opensuse.org/viewcvs/yast/trunk/iscsi-server/src/IscsiServerFunctions.pm?rev=55871&r1=55870&r2=55871&view=diff ============================================================================== --- trunk/iscsi-server/src/IscsiServerFunctions.pm (original) +++ trunk/iscsi-server/src/IscsiServerFunctions.pm Tue Mar 3 13:23:43 2009 @@ -307,10 +307,14 @@ } } # write 'iSNS' and 'auth' into %new_config - $config_file{'value'} = $new_config{'iSNS'}; + if (defined $new_config{'iSNS'}){ + $config_file{'value'} = $new_config{'iSNS'}; delete ($new_config{'iSNS'}); - if (exists $new_config{'auth'}) { @{$config_file{'value'}} = (@{$config_file{'value'}}, @{$new_config{'auth'}}) } + } + if (defined $new_config{'auth'}){ + @{$config_file{'value'}} = (@{$config_file{'value'}}, @{$new_config{'auth'}}) ; delete ($new_config{'auth'}); + } #write all targets into %new_config foreach my $key (reverse(keys %new_config )){ if (not ref($new_config{$key})){ -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org