From 3bf56519d1ee23ba3c258c28b63523e7013a48ca Mon Sep 17 00:00:00 2001 From: Jacob Huff Date: Fri, 7 Mar 2025 15:56:24 -0500 Subject: [PATCH] adds hypervisor type to data get action --- CHANGES.md | 3 +++ actions/data_get_all.py | 1 + pack.yaml | 2 +- tests/test_action_data_get_all.py | 3 ++- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index d6198f0..afb6d6b 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,6 @@ +## 1.1.6 +- Adds hypervisor type to data get action + ## 1.1.5 - Adds wilds to data get action diff --git a/actions/data_get_all.py b/actions/data_get_all.py index f178287..8ec0086 100644 --- a/actions/data_get_all.py +++ b/actions/data_get_all.py @@ -200,5 +200,6 @@ def run(self, api_config, template_label_filters, open_nebula=None): # Add hostname to data conn = self._get_connection_info(open_nebula) all_objs['hostname'] = conn['host'] + all_objs['hypervisor_type'] = "open_nebula" return all_objs diff --git a/pack.yaml b/pack.yaml index 631245d..dcfeebc 100755 --- a/pack.yaml +++ b/pack.yaml @@ -3,7 +3,7 @@ ref: open_nebula name: open_nebula description: Open Nebula stackstorm_version: ">=2.9.0" -version: 1.1.5 +version: 1.1.6 author: John Schoewe email: john.schoewe@encore.tech contributors: diff --git a/tests/test_action_data_get_all.py b/tests/test_action_data_get_all.py index f46052c..3e1fff3 100644 --- a/tests/test_action_data_get_all.py +++ b/tests/test_action_data_get_all.py @@ -232,7 +232,8 @@ def test_run(self, mock_session, mock_get_objects, mock_add_wilds): 'networks': 'obj2', 'hosts': 'obj3', 'wilds': ['wild1', 'wild2'], - 'hostname': 'test.com' + 'hostname': 'test.com', + 'hypervisor_type': 'open_nebula' } result = action.run(api_config, template_label_filters, open_nebula)