IBM-Security / ibmsecurity

Idempotent functions for IBM Security Appliance REST APIs. Currently covering ISAM and ISDS Appliances.
Apache License 2.0
47 stars 73 forks source link

removed the extra curly braces from get_config_data function #417

Closed aditiParimanshu closed 6 months ago

aditiParimanshu commented 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)

aditiParimanshu commented 6 months ago

@tombosmansibm kindly take this on priority!

tombosmansibm commented 6 months ago

Thanks for fixing this !