Closed aditiParimanshu closed 6 months ago
def _get_config_data(extId, config_data):
"""
Generate a JSON payload for activate/update
if config_data is None:
return json.dumps({extId: extId}) >>> Should be return json.dumps({'extId': extId}) if isinstance(config_data, basestring):
return '{extId:}' + extId + ',' + config_data + '}' >>> should be return '{extId:' + extId + ',' + config_data + '}' config_data['extId'] = extId
return json.dumps(config_data)
@tombosmansibm kindly take this on priority!
Thanks for fixing this !
def _get_config_data(extId, config_data):
"""
Generate a JSON payload for activate/update
"""
if config_data is None:
return json.dumps({extId: extId}) >>> Should be return json.dumps({'extId': extId}) if isinstance(config_data, basestring):
return '{extId:}' + extId + ',' + config_data + '}' >>> should be return '{extId:' + extId + ',' + config_data + '}' config_data['extId'] = extId
return json.dumps(config_data)