Skip to content

Commit

Permalink
[FR] [DAC] Add id support
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-forte-elastic committed Oct 24, 2024
1 parent 6ec5c5b commit b8749ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/kibana/kibana/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .connector import Kibana
from .resources import RuleResource, Signal

__version__ = '0.2.1'
__version__ = '0.4.1'
__all__ = (
"Kibana",
"RuleResource",
Expand Down
2 changes: 1 addition & 1 deletion lib/kibana/kibana/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def current(cls) -> 'Kibana':
def verify_space(self, space):
"""Verify a space is valid."""
spaces = self.get('/api/spaces/space')
space_names = [s['name'] for s in spaces]
space_names = [s['id'] for s in spaces]
if space not in space_names:
raise ValueError(f'Unknown Kibana space: {space}')

Expand Down
2 changes: 1 addition & 1 deletion lib/kibana/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "detection-rules-kibana"
version = "0.4.0"
version = "0.4.1"
description = "Kibana API utilities for Elastic Detection Rules"
license = {text = "Elastic License v2"}
keywords = ["Elastic", "Kibana", "Detection Rules", "Security", "Elasticsearch"]
Expand Down

0 comments on commit b8749ef

Please sign in to comment.