Shuffle / Shuffle

Shuffle: A general purpose security automation platform. Our focus is on collaboration and resource sharing.

Home Page:https://shuffler.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

APP SDK Parsing parameter error

iifiigii opened this issue · comments

In the [backend/app_sdk/app_base.py] I find a bug.
In line 3702:
"""params[key] = ast.literal_eval(value)"""
AND
In line 124, you define the same name function ast():
def ast(a):
return ast.literal_eval(str(a))
That make error like:
image

In the [backend/app_sdk/app_base.py] I find a bug. In line 3702: """params[key] = ast.literal_eval(value)""" AND In line 124, you define the same name function ast(): def ast(a): return ast.literal_eval(str(a)) That make error like: image

Nice catch! Thanks for the report. I guess this line hasn't been touched in quite some time, as I haven't seen this problem in ages.

Fixed & renamed function to ast_eval(), and from what I saw, | ast wasn't used at all in liquid yet.