Skip to content

Commit 581ef73

Browse files
[FR] [DAC] Add id support (#4208)
1 parent b6847c7 commit 581ef73

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/kibana/kibana/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from .connector import Kibana
99
from .resources import RuleResource, Signal
1010

11-
__version__ = '0.2.1'
11+
__version__ = '0.4.1'
1212
__all__ = (
1313
"Kibana",
1414
"RuleResource",

lib/kibana/kibana/connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def current(cls) -> 'Kibana':
242242
def verify_space(self, space):
243243
"""Verify a space is valid."""
244244
spaces = self.get('/api/spaces/space')
245-
space_names = [s['name'] for s in spaces]
245+
space_names = [s['id'] for s in spaces]
246246
if space not in space_names:
247247
raise ValueError(f'Unknown Kibana space: {space}')
248248

lib/kibana/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "detection-rules-kibana"
3-
version = "0.4.0"
3+
version = "0.4.1"
44
description = "Kibana API utilities for Elastic Detection Rules"
55
license = {text = "Elastic License v2"}
66
keywords = ["Elastic", "Kibana", "Detection Rules", "Security", "Elasticsearch"]

0 commit comments

Comments
 (0)