Skip to content

Commit

Permalink
Merge pull request #3222 from marianne013/csapifix
Browse files Browse the repository at this point in the history
[v6r15] changed so it works on empty but existing options in config system
  • Loading branch information
Andrei Tsaregorodtsev committed Jan 13, 2017
2 parents ba6126d + 26dc79d commit 86d3635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ConfigurationSystem/Client/CSAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def modifyValue( self, optionPath, newValue ):
if not self.__initialized[ 'OK' ]:
return self.__initialized
prevVal = self.__csMod.getValue( optionPath )
if not prevVal:
if prevVal is None:
return S_ERROR( 'Trying to set %s to %s but option does not exist' % ( optionPath, newValue ) )
gLogger.verbose( "Changing %s from \n%s \nto \n%s" % ( optionPath, prevVal, newValue ) )
self.__csMod.setOptionValue( optionPath, newValue )
Expand Down

0 comments on commit 86d3635

Please sign in to comment.