Author: mzugec Date: Tue Mar 3 13:23:33 2009 New Revision: 55870 URL: http://svn.opensuse.org/viewcvs/yast?rev=55870&view=rev Log: handle exceptions - thanks to ajohansson@novell.com (bnc#481379) Modified: branches/SuSE-SLE-10-SP3-Branch/iscsi-server/VERSION branches/SuSE-SLE-10-SP3-Branch/iscsi-server/package/yast2-iscsi-server.changes branches/SuSE-SLE-10-SP3-Branch/iscsi-server/src/IscsiServerFunctions.pm Modified: branches/SuSE-SLE-10-SP3-Branch/iscsi-server/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP3-Branch/iscsi-server/VERSION?rev=55870&r1=55869&r2=55870&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP3-Branch/iscsi-server/VERSION (original) +++ branches/SuSE-SLE-10-SP3-Branch/iscsi-server/VERSION Tue Mar 3 13:23:33 2009 @@ -1 +1 @@ -2.13.27 +2.13.28 Modified: branches/SuSE-SLE-10-SP3-Branch/iscsi-server/package/yast2-iscsi-server.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP3-Branch/iscsi-server/package/yast2-iscsi-server.changes?rev=55870&r1=55869&r2=55870&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP3-Branch/iscsi-server/package/yast2-iscsi-server.changes (original) +++ branches/SuSE-SLE-10-SP3-Branch/iscsi-server/package/yast2-iscsi-server.changes Tue Mar 3 13:23:33 2009 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Mar 3 13:16:47 CET 2009 - mzugec@suse.cz + +- handle exceptions - thanks to ajohansson@novell.com (bnc#481379) +- 2.13.28 + +------------------------------------------------------------------- Tue Dec 16 13:46:27 CET 2008 - mzugec@suse.de - fixed IscsiServerFunctions::writeConfig (bnc#459006) Modified: branches/SuSE-SLE-10-SP3-Branch/iscsi-server/src/IscsiServerFunctions.pm URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP3-Branch/iscsi-server/src/IscsiServerFunctions.pm?rev=55870&r1=55869&r2=55870&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP3-Branch/iscsi-server/src/IscsiServerFunctions.pm (original) +++ branches/SuSE-SLE-10-SP3-Branch/iscsi-server/src/IscsiServerFunctions.pm Tue Mar 3 13:23:33 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'}); - @{$config_file{'value'}} = (@{$config_file{'value'}}, @{$new_config{'auth'}}) if exists $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