From 8c2284dd0ab329ba89431ca10f46227778b6a11a Mon Sep 17 00:00:00 2001 From: Benjamin Morris <93620006+bmorrissirromb@users.noreply.github.com> Date: Wed, 27 Sep 2023 13:04:51 -0700 Subject: [PATCH] remove hardcoded rule name --- rdk/template/runtime/python3.10-lib/rule_test.py | 4 ++-- rdk/template/runtime/python3.11-lib/rule_test.py | 4 ++-- rdk/template/runtime/python3.7-lib/rule_test.py | 4 ++-- rdk/template/runtime/python3.8-lib/rule_test.py | 4 ++-- rdk/template/runtime/python3.9-lib/rule_test.py | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/rdk/template/runtime/python3.10-lib/rule_test.py b/rdk/template/runtime/python3.10-lib/rule_test.py index db0cf30c..196ab37e 100644 --- a/rdk/template/runtime/python3.10-lib/rule_test.py +++ b/rdk/template/runtime/python3.10-lib/rule_test.py @@ -19,8 +19,8 @@ # Main Code # ############# -MODULE = __import__("check_security_hub_aggregator") -RULE = MODULE.check_security_hub_aggregator() +MODULE = __import__('<%RuleName%>') +RULE = MODULE.<%RuleName%>() CLIENT_FACTORY = MagicMock() diff --git a/rdk/template/runtime/python3.11-lib/rule_test.py b/rdk/template/runtime/python3.11-lib/rule_test.py index db0cf30c..196ab37e 100644 --- a/rdk/template/runtime/python3.11-lib/rule_test.py +++ b/rdk/template/runtime/python3.11-lib/rule_test.py @@ -19,8 +19,8 @@ # Main Code # ############# -MODULE = __import__("check_security_hub_aggregator") -RULE = MODULE.check_security_hub_aggregator() +MODULE = __import__('<%RuleName%>') +RULE = MODULE.<%RuleName%>() CLIENT_FACTORY = MagicMock() diff --git a/rdk/template/runtime/python3.7-lib/rule_test.py b/rdk/template/runtime/python3.7-lib/rule_test.py index db0cf30c..196ab37e 100644 --- a/rdk/template/runtime/python3.7-lib/rule_test.py +++ b/rdk/template/runtime/python3.7-lib/rule_test.py @@ -19,8 +19,8 @@ # Main Code # ############# -MODULE = __import__("check_security_hub_aggregator") -RULE = MODULE.check_security_hub_aggregator() +MODULE = __import__('<%RuleName%>') +RULE = MODULE.<%RuleName%>() CLIENT_FACTORY = MagicMock() diff --git a/rdk/template/runtime/python3.8-lib/rule_test.py b/rdk/template/runtime/python3.8-lib/rule_test.py index db0cf30c..196ab37e 100644 --- a/rdk/template/runtime/python3.8-lib/rule_test.py +++ b/rdk/template/runtime/python3.8-lib/rule_test.py @@ -19,8 +19,8 @@ # Main Code # ############# -MODULE = __import__("check_security_hub_aggregator") -RULE = MODULE.check_security_hub_aggregator() +MODULE = __import__('<%RuleName%>') +RULE = MODULE.<%RuleName%>() CLIENT_FACTORY = MagicMock() diff --git a/rdk/template/runtime/python3.9-lib/rule_test.py b/rdk/template/runtime/python3.9-lib/rule_test.py index db0cf30c..196ab37e 100644 --- a/rdk/template/runtime/python3.9-lib/rule_test.py +++ b/rdk/template/runtime/python3.9-lib/rule_test.py @@ -19,8 +19,8 @@ # Main Code # ############# -MODULE = __import__("check_security_hub_aggregator") -RULE = MODULE.check_security_hub_aggregator() +MODULE = __import__('<%RuleName%>') +RULE = MODULE.<%RuleName%>() CLIENT_FACTORY = MagicMock()