Skip to content

Commit 26e166c

Browse files
Merge branch 'fix/appliance_preconfig' into development
2 parents 9802a4c + bd6a4ac commit 26e166c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pyedgeconnect/orch/_appliance_preconfig.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def create_preconfig(
104104
serial_number: str = "",
105105
tag: str = "",
106106
comment: str = "",
107-
) -> bool:
107+
) -> dict:
108108
"""Upload a YAML Preconfig to Orchestrator
109109
110110
.. list-table::
@@ -135,8 +135,10 @@ def create_preconfig(
135135
:type tag: str, optional
136136
:param comment: Comment field / notes on preconfig, defaults to ""
137137
:type comment: str, optional
138-
:return: Returns True/False based on successful call
139-
:rtype: bool
138+
:return: Returns assigned ID value of newly created preconfig \n
139+
* keyword **id** (`int`): Id of the new preconfiguration to be
140+
referenced in other API calls
141+
:rtype: dict
140142
"""
141143
yaml_byte = yaml_preconfig.encode("utf-8")
142144
yaml_b64 = base64.b64encode(yaml_byte)
@@ -154,7 +156,8 @@ def create_preconfig(
154156
}
155157

156158
return self._post(
157-
"/gms/appliance/preconfiguration", data=data, return_type="bool"
159+
"/gms/appliance/preconfiguration",
160+
data=data,
158161
)
159162

160163

0 commit comments

Comments
 (0)