diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f9f12d1..e9bc380f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -152,4 +152,9 @@ * Cleanup options for VPC Flow Logs and CloudTrails created by Assisted Log Enabler for AWS. * README Documentation * Added details in the Cleanup section to reflect VPC Flow Logs and CloudTrail commands. - * Added section about the Shared Responsibility Model. \ No newline at end of file + * Added section about the Shared Responsibility Model. + +## [1.4.1b] - 2021-08-24 + +### Added +* Condition statements for if no options were selected during Dry Run and Cleanup modes. \ No newline at end of file diff --git a/assisted_log_enabler.py b/assisted_log_enabler.py index a5167203..cedbd2f6 100644 --- a/assisted_log_enabler.py +++ b/assisted_log_enabler.py @@ -132,11 +132,15 @@ def assisted_log_enabler(): ALE_cleanup_single.run_vpcflow_cleanup() elif args.single_all: ALE_cleanup_single.lambda_handler(event, context) + else: + logging.info("No valid option selected. Please run with -h to display valid options.") elif args.mode == 'dryrun': if args.single_account: ALE_dryrun_single.lambda_handler(event, context) elif args.multi_account: ALE_dryrun_multi.lambda_handler(event, context) + else: + logging.info("No valid option selected. Please run with -h to display valid options.") else: print("No valid option selected. Please run with -h to display valid options.")