File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments