File tree 1 file changed +7
-4
lines changed 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ def create_preconfig(
104
104
serial_number : str = "" ,
105
105
tag : str = "" ,
106
106
comment : str = "" ,
107
- ) -> bool :
107
+ ) -> dict :
108
108
"""Upload a YAML Preconfig to Orchestrator
109
109
110
110
.. list-table::
@@ -135,8 +135,10 @@ def create_preconfig(
135
135
:type tag: str, optional
136
136
:param comment: Comment field / notes on preconfig, defaults to ""
137
137
: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
140
142
"""
141
143
yaml_byte = yaml_preconfig .encode ("utf-8" )
142
144
yaml_b64 = base64 .b64encode (yaml_byte )
@@ -154,7 +156,8 @@ def create_preconfig(
154
156
}
155
157
156
158
return self ._post (
157
- "/gms/appliance/preconfiguration" , data = data , return_type = "bool"
159
+ "/gms/appliance/preconfiguration" ,
160
+ data = data ,
158
161
)
159
162
160
163
You can’t perform that action at this time.
0 commit comments