From ddaf61ee51e1a00086f6119af463ebb80c042d03 Mon Sep 17 00:00:00 2001 From: VigneshKna Date: Sun, 22 Sep 2024 14:31:19 +0530 Subject: [PATCH] feat(Py_package)!:updated py package --- .../workflows/{container_publish.yml => docker_publish.yml} | 0 src/python/config.ini | 2 +- src/python/how2validate/validator.py | 6 +++--- src/python/setup.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename .github/workflows/{container_publish.yml => docker_publish.yml} (100%) diff --git a/.github/workflows/container_publish.yml b/.github/workflows/docker_publish.yml similarity index 100% rename from .github/workflows/container_publish.yml rename to .github/workflows/docker_publish.yml diff --git a/src/python/config.ini b/src/python/config.ini index 0980aba..4857e2f 100644 --- a/src/python/config.ini +++ b/src/python/config.ini @@ -1,6 +1,6 @@ [DEFAULT] package_name = how2validate -version = 0.0.0a6 +version = 0.0.0a8 [SECRET] secret_active = Active diff --git a/src/python/how2validate/validator.py b/src/python/how2validate/validator.py index 9aab639..c684a48 100644 --- a/src/python/how2validate/validator.py +++ b/src/python/how2validate/validator.py @@ -2,7 +2,7 @@ import logging from how2validate.utility.config_utility import get_active_secret_status, get_inactive_secret_status, get_package_name, get_version -from how2validate.utility.tool_utility import format_serviceprovider, format_services, get_secretprovider, get_secretservices, redact_secret, update_tool, validate_choice +from how2validate.utility.tool_utility import format_serviceprovider, format_services, format_string, get_secretprovider, get_secretservices, redact_secret, update_tool, validate_choice from how2validate.utility.log_utility import setup_logging from how2validate.handler.validator_handler import validator_handle_service @@ -50,9 +50,9 @@ def parse_arguments(): def validate(provider,service, secret, response, report): logging.info(f"Started validating secret...") - result = validator_handle_service(service, secret, response, report) + result = validator_handle_service(format_string(service), secret, response, report) logging.info(f"{result}") - return f"{result}" + # return f"{result}" def main(args=None): if args is None: diff --git a/src/python/setup.py b/src/python/setup.py index 3250ffa..98feeca 100644 --- a/src/python/setup.py +++ b/src/python/setup.py @@ -30,7 +30,7 @@ packages=find_packages(), include_package_data=True, package_data={ - '': ['*.txt', '../requirements.txt', '../config.ini', '../tokenManager.json', '../README.md', '../main.py'], + '': ['../requirements.txt', '../config.ini', '../tokenManager.json', '../README.md', '../main.py'], }, install_requires=requirements, entry_points={