From 8f997db22f53eeed77af219250ac4e6e6f0d1643 Mon Sep 17 00:00:00 2001 From: kiranisaac Date: Wed, 28 Jan 2015 14:49:32 -0800 Subject: [PATCH] change function name from decrypt to deserialize --- .../Commands.Automation/Common/PowershellJsonConverter.cs | 2 +- .../Automation/Commands.Automation/Model/Variable.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ServiceManagement/Automation/Commands.Automation/Common/PowershellJsonConverter.cs b/src/ServiceManagement/Automation/Commands.Automation/Common/PowershellJsonConverter.cs index becce717b010..499de7915f3d 100644 --- a/src/ServiceManagement/Automation/Commands.Automation/Common/PowershellJsonConverter.cs +++ b/src/ServiceManagement/Automation/Commands.Automation/Common/PowershellJsonConverter.cs @@ -16,7 +16,7 @@ public static class PowershellJsonConverter private const string PsCommandParamInputObject = "InputObject"; private const string PsCommandParamDepth = "Depth"; - public static PSObject Decrypt(string json) + public static PSObject Deserialize(string json) { if (String.IsNullOrEmpty(json)) { diff --git a/src/ServiceManagement/Automation/Commands.Automation/Model/Variable.cs b/src/ServiceManagement/Automation/Commands.Automation/Model/Variable.cs index cbde1c520132..a2b4d4a660e7 100644 --- a/src/ServiceManagement/Automation/Commands.Automation/Model/Variable.cs +++ b/src/ServiceManagement/Automation/Commands.Automation/Model/Variable.cs @@ -46,7 +46,7 @@ public Variable(AutomationManagement.Models.Variable variable, string automation } else { - this.Value = PowershellJsonConverter.Decrypt(variable.Properties.Value); + this.Value = PowershellJsonConverter.Deserialize(variable.Properties.Value); } this.Description = variable.Properties.Description;