We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
this block of code should not have [ERROR] for both branches of the if as it causes misleading responses when the script is run.
if r.status_code != 200 and r.status_code != 201: log('[ERROR] Failed to delete offline Collectors') else: log('[ERROR] Successfully deleted offline Collectors')
The text was updated successfully, but these errors were encountered:
suggested fix to also include better error reporting in line with other parts of the code.
if r.status_code != 200 and r.status_code != 201: log('[ERROR] Failed to delete offline Collectors') log('[ERROR] %s' % r.json()['message'].lower()[:-1]) else: log('Successfully deleted offline Collectors')
Sorry, something went wrong.
No branches or pull requests
this block of code should not have [ERROR] for both branches of the if as it causes misleading responses when the script is run.
The text was updated successfully, but these errors were encountered: