Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ResourceStatusSystem/Client/ResourceManagementClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,8 @@ def __addOrModifyElement( self, element, kwargs ):
kwargs[ 'meta' ] = { 'onlyUniqueKeys' : True }

sqlQuery = self._getElement( element, kwargs )
if not sqlQuery[ 'OK' ]:
return sqlQuery

del kwargs[ 'meta' ]

Expand Down
6 changes: 5 additions & 1 deletion ResourceStatusSystem/Client/ResourceStatusClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -2322,7 +2322,9 @@ def __addOrModifyElement( self, element, kwargs ):

kwargs[ 'meta' ] = { 'onlyUniqueKeys' : True }
sqlQuery = self._getElement( element, kwargs )

if not sqlQuery[ 'OK' ]:
return sqlQuery

del kwargs[ 'meta' ]

if sqlQuery[ 'Value' ]:
Expand Down Expand Up @@ -2380,6 +2382,8 @@ def __addOrModifyElementStatus( self, element, rDict ):
}

sqlQuery = self._getElement( 'ElementStatus', kwargs )
if not sqlQuery[ 'OK' ]:
return sqlQuery

rDict[ 'element' ] = element

Expand Down
2 changes: 1 addition & 1 deletion ResourceStatusSystem/Utilities/MySQLMonkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def _checkFLOAT(self, suspicious):
if type(i) not in (int, float):
raise RSSDBException( 'Non numeric value "%s"' % suspicious )

return [ '"%s"' % s.replace( microsecond = 0 ) for s in suspicious ]
return suspicious

_checkNUMERIC = _checkFLOAT
_checkDECIMAL = _checkFLOAT
Expand Down