-
Notifications
You must be signed in to change notification settings - Fork 216
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
Added a configuration to define the reports retention period #49
Conversation
[Release 1.0][Fix] Fixed some coding standards
modules/retainnumberofreports.py
Outdated
from modules import gcpaudit | ||
from modules import awsaudit | ||
from modules import azureaudit |
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.
By importing the modules by default, will result in breaking of the tool
Let's assume the case, where a user is running audit for Azure environment
from modules import awsaudit
The awsaudit file will run this line
https://github.com/opstree/cs-suite/blob/master/modules/awsaudit.py#L30
Which basically requires AWS cli to be configured.
Hence breaking it, as the user will be running the scan only for Azure.
Can we import these based on the environment parameter given by the user
Something like this
https://github.com/opstree/cs-suite/blob/master/cs.py#L65
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.
Done with the suggested changes, please review
importing module while it call
Thanks guys!! |
Currently, CS-Suite runs in a mode where either it saves all the reports or none. We would like to add a configuration where we can define reports retention period
Added a parameter -n or --number using which end user can define how many reports to be retained.