Skip to content

Commit

Permalink
[Automation]Fix the issue of automation in string (#14314)
Browse files Browse the repository at this point in the history
* Fix the issue of automation in string

* Update Changelog.md

Co-authored-by: wyunchi-ms <[email protected]>
  • Loading branch information
wyunchi-ms and wyunchi-ms authored Feb 24, 2021
1 parent 8e7038c commit 6904f19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Automation/Automation/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
* Fixed the issue that string cannot be serialized correctly. [#14215]
* Added Support for Python3 Runbook Type

## Version 1.4.3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static string Serialize(object inputObject)
}
if (inputObject is string @str)
{
return str.Trim();
return JsonConvert.SerializeObject(str.Trim());
}
else if (inputObject is object[] @objectArray)
{
Expand Down

0 comments on commit 6904f19

Please sign in to comment.