opensearchcli 0.2.2__tar.gz → 0.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/PKG-INFO +1 -1
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/pyproject.toml +1 -1
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/src/opensearchcli/cli.py +6 -2
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/src/opensearchcli/commands/config.py +1 -1
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/src/opensearchcli.egg-info/PKG-INFO +1 -1
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/README.md +0 -0
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/setup.cfg +0 -0
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/src/opensearchcli/__init__.py +0 -0
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/src/opensearchcli/commands/__init__.py +0 -0
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/src/opensearchcli/commands/cluster.py +0 -0
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/src/opensearchcli/commands/cluster_settings.py +0 -0
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/src/opensearchcli/commands/commands.py +0 -0
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/src/opensearchcli/commands/exceptions.py +0 -0
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/src/opensearchcli/commands/helpers.py +0 -0
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/src/opensearchcli/commands/index.py +0 -0
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/src/opensearchcli/commands/index_settings.py +0 -0
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/src/opensearchcli/commands/raw.py +0 -0
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/src/opensearchcli/commands/snapshot.py +0 -0
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/src/opensearchcli.egg-info/SOURCES.txt +0 -0
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/src/opensearchcli.egg-info/dependency_links.txt +0 -0
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/src/opensearchcli.egg-info/entry_points.txt +0 -0
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/src/opensearchcli.egg-info/requires.txt +0 -0
- {opensearchcli-0.2.2 → opensearchcli-0.2.3}/src/opensearchcli.egg-info/top_level.txt +0 -0
|
@@ -94,8 +94,12 @@ def common(
|
|
|
94
94
|
) -> None:
|
|
95
95
|
"""OpenSearch CLI - Manage your OpenSearch clusters."""
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
try:
|
|
98
|
+
_config = config.read_config(config_file=config_file)
|
|
99
|
+
_profile = _config.find_profile_by_name(profile_name=profile)
|
|
100
|
+
except Exception as ex:
|
|
101
|
+
console.log(f"Error while reading config {config_file}:", ex, style="red")
|
|
102
|
+
exit(1)
|
|
99
103
|
|
|
100
104
|
ctx.obj = OpenSearchCli(
|
|
101
105
|
config=_config,
|
|
@@ -61,7 +61,7 @@ class Config:
|
|
|
61
61
|
for profile in self.profiles:
|
|
62
62
|
if profile.profile_name == profile_name:
|
|
63
63
|
return profile
|
|
64
|
-
|
|
64
|
+
raise KeyError(f'Profile "{profile_name}" not found')
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
def read_config(config_file: str) -> Config:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|