-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add reputation routes #99
Conversation
if ('file' not in params or | ||
params['file'] is None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if ('file' not in params or | |
params['file'] is None): | |
if params.get('file') is None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally we don't modify the files manually since the project is supposed to be generated purely by a new server version.
form_params = [] | ||
local_var_files = {} | ||
if 'file' in params: | ||
local_var_files['file'] = params['file'] # noqa: E501 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't we raise ValueError
if it is not there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think in the future I will see if we can bump the version of the tool we are using, but that will be a relatively big effort since everything that uses demisto-py will need to be validated.
Ideally a version bump will lead to better syntax here.
Status
Ready
Related Issues
fixes: internal
Description
Adds ability to upload reputations
Must have