diff --git a/azure-mgmt-automation/azure/mgmt/automation/operations/runbook_draft_operations.py b/azure-mgmt-automation/azure/mgmt/automation/operations/runbook_draft_operations.py index edbfedeca1a3..253fb0c2adf9 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/operations/runbook_draft_operations.py +++ b/azure-mgmt-automation/azure/mgmt/automation/operations/runbook_draft_operations.py @@ -136,7 +136,7 @@ def _replace_content_initial( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - body_content = self._serialize.body(runbook_content, 'str') + body_content = upload_gen(runbook_content) # Construct and send request request = self._client.put(url, query_parameters) @@ -176,7 +176,7 @@ def replace_content( :param runbook_name: The runbook name. :type runbook_name: str :param runbook_content: The runbook draft content. - :type runbook_content: str + :type runbook_content: Generator :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response