Skip to content

Commit

Permalink
Fix change in SDK upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
blueww committed Apr 14, 2021
1 parent 1934bcf commit e4fca8a
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/Storage/Storage.Management/Models/PSStorageAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,18 +238,12 @@ public class PSKeyCreationTime
public PSKeyCreationTime()
{ }

public PSKeyCreationTime(IDictionary<string, DateTime?> keyCreationTime)
public PSKeyCreationTime(KeyCreationTime keyCreationTime)
{
if (keyCreationTime != null && keyCreationTime.Count > 0)
if (keyCreationTime != null)
{
if (keyCreationTime.Keys.Contains("key1"))
{
Key1 = keyCreationTime["key1"];
}
if (keyCreationTime.Keys.Contains("key2"))
{
Key2 = keyCreationTime["key2"];
}
this.Key1 = keyCreationTime.Key1;
this.Key2 = keyCreationTime.Key2;
}
}
public System.DateTime? Key1 { get; set; }
Expand Down

0 comments on commit e4fca8a

Please sign in to comment.