I am trying to search for few strings from the logline and exclude those lines. If I try with string directly it works but if I read the strings from a config file, it doesn't. The problem is due to the type. Can someone put some light into this in converting the list to string?
Code
match1 = config.get('sky_messages', 'matches')
match = list(match1.split(","))
print(match1)
print(match)
print(type(match1))
print(type(match))
Config File
[sky_messages]
matches = ['Conviva', 'conviva', 'EDID', 'CONVIVA']
Output
['Conviva', 'conviva', 'EDID', 'CONVIVA']
["['Conviva'", " 'conviva'", " 'EDID'", " 'CONVIVA']"]
<class 'str'>
<class 'list'>
How can I get the string as match1?