mirror of
https://github.com/d9pouces/id_configurator.git
synced 2026-11-09 01:47:21 +01:00
feat: add --config-url-insecure option to disable TLS certificate verification
Signed-off-by: d9pouces <github@19pouces.net>
This commit is contained in:
@@ -38,18 +38,19 @@ description:
|
||||
author:
|
||||
- InterDiode
|
||||
options:
|
||||
version:
|
||||
type: str
|
||||
default: "1.0"
|
||||
description: Configuration.version - the configuration format's own schema version.
|
||||
uuid:
|
||||
type: str
|
||||
required: true
|
||||
description: Configuration.uuid - a UUID identifying this configuration.
|
||||
description: Configuration.uuid - a UUID identifying this configuration, optional.
|
||||
organisation:
|
||||
type: str
|
||||
required: true
|
||||
description: Configuration.organisation.
|
||||
description: Configuration.organisation, optional.
|
||||
description:
|
||||
type: str
|
||||
default: ""
|
||||
description: Configuration.description.
|
||||
description: Configuration.description, optional.
|
||||
certificates:
|
||||
type: list
|
||||
elements: dict
|
||||
@@ -467,9 +468,10 @@ def _name_url_repository_config() -> dict:
|
||||
|
||||
|
||||
ARGUMENT_SPEC = {
|
||||
"uuid": {"type": "str", "required": True},
|
||||
"organisation": {"type": "str", "required": True},
|
||||
"description": {"type": "str", "default": ""},
|
||||
"version": {"type": "str", "default": "1.0"},
|
||||
"uuid": {"type": "str"},
|
||||
"organisation": {"type": "str"},
|
||||
"description": {"type": "str"},
|
||||
"certificates": {
|
||||
"type": "list",
|
||||
"elements": "dict",
|
||||
@@ -596,6 +598,7 @@ except ImportError as exc:
|
||||
|
||||
def _build_configuration_data(params: dict) -> dict:
|
||||
return {
|
||||
"version": params["version"],
|
||||
"uuid": params["uuid"],
|
||||
"organisation": params["organisation"],
|
||||
"description": params["description"],
|
||||
|
||||
Reference in New Issue
Block a user