File tree 3 files changed +36
-1
lines changed
src/conformity_migration_tool
3 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 1
1
[metadata]
2
2
name = conformity-migration-tool
3
- version = 0.12 .0
3
+ version = 0.13 .0
4
4
description = Migrates your visiblity information in cloudconformity.com to cloudone.trendmicro.com
5
5
long_description = file: README.md
6
6
long_description_content_type = text/markdown
Original file line number Diff line number Diff line change
1
+ import atexit
1
2
import csv
2
3
import json
3
4
import multiprocessing as mp
@@ -528,5 +529,20 @@ def pretty_print(obj):
528
529
print (json .dumps (obj , indent = 4 , default = str ))
529
530
530
531
532
+ @atexit .register
533
+ def warn_aws_creds ():
534
+ print (
535
+ """
536
+
537
+ \033 [32m!!! W A R N I N G !!!\033 [0m"""
538
+ )
539
+ print (
540
+ """
541
+ After you finish updating the stack, please make sure to delete
542
+ any generated CSV file that may contain your AWS credentials.
543
+ """
544
+ )
545
+
546
+
531
547
if __name__ == "__main__" :
532
548
cli ()
Original file line number Diff line number Diff line change
1
+ import atexit
1
2
import csv
2
3
import os
3
4
import time
@@ -1283,5 +1284,23 @@ def empty_c1():
1283
1284
# raise e
1284
1285
1285
1286
1287
+ @atexit .register
1288
+ def warn_user_config ():
1289
+ user_conf_path = user_config_path ()
1290
+ if not user_conf_path .exists ():
1291
+ return
1292
+ print (
1293
+ """
1294
+
1295
+ \033 [32m!!! W A R N I N G !!!\033 [0m"""
1296
+ )
1297
+ print (
1298
+ f"""
1299
+ The file { user_conf_path } contains your Conformity and Cloud One API Keys.
1300
+ Please delete the file once you are done using this tool.
1301
+ """
1302
+ )
1303
+
1304
+
1286
1305
if __name__ == "__main__" :
1287
1306
cli ()
You can’t perform that action at this time.
0 commit comments