Skip to content

Commit 600fe65

Browse files
committed
Fix wrong usage of the python ironic client
1 parent 4a7074b commit 600fe65

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • python/understack-workflows/understack_workflows/ironic

python/understack-workflows/understack_workflows/ironic/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def set_node_target_raid_config(self, node_id: str, raid_config: dict) -> None:
5858
def get_node_traits(self, node_id: str) -> list[str]:
5959
return cast(list[str], self.client.node.get_traits(node_id))
6060

61-
def get_runbook(self, runbook_id: str):
62-
return self.client.node.api.runbook.get(runbook_id)
61+
def get_runbook(self, runbook_name_or_id: str):
62+
return str(self.client.runbook.get(runbook_name_or_id))
6363

6464
def get_node_inventory(self, node_ident: str) -> dict:
6565
"""Fetch node inventory data from Ironic API.

0 commit comments

Comments
 (0)