diff --git a/gala-ragdoll.spec b/gala-ragdoll.spec index 33bbcdbffffc45276341e1b3f3d8ed7966f13e86..9e56df72418f0524be7329b418773bc13cdb2bfc 100644 --- a/gala-ragdoll.spec +++ b/gala-ragdoll.spec @@ -18,12 +18,12 @@ An os-level configuration management service %package -n python3-gala-ragdoll -Summary: python3 pakcage of gala-ragdoll +Summary: python3 package of gala-ragdoll Requires: python3-flask-testing python3-libyang git Requires: python3-werkzeug python3-connexion python3-swagger-ui-bundle %description -n python3-gala-ragdoll -python3 pakcage of gala-ragdoll +python3 package of gala-ragdoll %prep @@ -147,7 +147,7 @@ fi - 2. delete redundant dependent packages for gala-spider. * Mon Aug 1 2022 zhuyuncheng - v1.2.0-2 -- add base-database executable file into aops-manager to downlaod database. +- add base-database executable file into aops-manager to download database. * Sun Jul 31 2022 zhaoyuxing - v1.2.0-1 - modify spec for gala-gopher&gala-spider and add new features. diff --git a/ragdoll/demo/conf_manage.py b/ragdoll/demo/conf_manage.py index fb5fd78395eae7122b1d1fde2aea10df85ebd808..677bfdff4c5ee1d2d8bbe50f1e5452e9e6b9d8f0 100644 --- a/ragdoll/demo/conf_manage.py +++ b/ragdoll/demo/conf_manage.py @@ -31,7 +31,7 @@ class ConfManage(object): conf = Conf(file_path=file_path_list[i], host_id=host_id_list[i]) conf_file.append(conf) else: - LOGGER.error("ERROR: Input error as invlid param!\n") + LOGGER.error("ERROR: Input error as invalid param!\n") return data = Confs(domain_name=domain_name, conf_files=conf_file) diff --git a/ragdoll/demo/ragdoll_client.py b/ragdoll/demo/ragdoll_client.py index 2819895d525974efb247a7749280e5a5cc3497f9..a64928429250ef51b9cf60447563e060c5562426 100644 --- a/ragdoll/demo/ragdoll_client.py +++ b/ragdoll/demo/ragdoll_client.py @@ -14,22 +14,22 @@ def parse_commands(): ragdoll_cli = argparse.ArgumentParser(prog="ragdoll_cli") sub_parser = ragdoll_cli.add_subparsers(dest="sub_parser", title="ragdoll_cli") - # 1 ragdoll > domian + # 1 ragdoll > domain domain = sub_parser.add_parser("domain", help="Configuring Domain Management.") - domain = domain.add_subparsers(dest="sub_sub_parser", title="domian") + domain = domain.add_subparsers(dest="sub_sub_parser", title="domain") - # ragdoll > domian > create + # ragdoll > domain > create domain_create = domain.add_parser("create", help="create configuring domain") domain_create.add_argument("--domainName", dest="domain_name", type=str, action="append", required=True, help="domain name") domain_create.add_argument("--priority", dest="priority", type=int, action="append", required=True, help="domain priority") domain_create.set_defaults(func=domain_manage.domain_create) - # ragdoll > domian > delete + # ragdoll > domain > delete domain_delete = domain.add_parser("delete", help="delete configuring domain") domain_delete.add_argument("--domainName", dest="domain_name", type=str, action="append", required=True, help="domain name") domain_delete.set_defaults(func=domain_manage.domain_delete) - # ragdoll > domian > query + # ragdoll > domain > query domain_query = domain.add_parser("query", help="query configuring domain") domain_query.set_defaults(func=domain_manage.domain_query) diff --git a/ragdoll/host_manage/view.py b/ragdoll/host_manage/view.py index ead42f77944331d2e05d1779a2a83a7e44428bc2..a9dfce530321fc8fc65027325aacd999972df6ab 100644 --- a/ragdoll/host_manage/view.py +++ b/ragdoll/host_manage/view.py @@ -106,7 +106,7 @@ class AddHostInDomain(BaseResponse): codeNum = PARTIAL_SUCCEED codeString = Format.splicErrorString("host", "add hosts", successHost, failedHost) - # git commit maessage + # git commit message if len(host_infos) > 0: git_tools = GitTools() commit_code = git_tools.gitCommit("Add the host in {} domian, ".format(domain) + diff --git a/ragdoll/log/log.py b/ragdoll/log/log.py index 2dd2871db99c1ea96aa43d3fa21891a480aecac5..a99912261a55084d6668543001904c2b446e2bc6 100644 --- a/ragdoll/log/log.py +++ b/ragdoll/log/log.py @@ -80,7 +80,7 @@ class Logger: Args: arg(int): parameter need to be checked. - comment(str): decription. + comment(str): description. Raises: ValueError