Skip to content

Commit 0ab63c1

Browse files
author
Leandro Wajswajn Pereyra
committed
switched cmdlet to use general implementation instead of keyvault specific
1 parent e39a82f commit 0ab63c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/KeyVault/KeyVault/Commands/SetAzureKeyVaultSecret.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
using Microsoft.Azure.Commands.KeyVault.Models;
1616
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1718
using System;
1819
using System.Collections;
1920
using System.Collections.Generic;
@@ -142,7 +143,7 @@ public override void ExecuteCmdlet()
142143

143144
if (this.Tag != null)
144145
{
145-
attributes.Tags = this.Tag.ConvertToDictionary().ConvertToHashtable();
146+
attributes.Tags = TagsConversionHelper.CreateTagHashtable(TagsConversionHelper.CreateTagDictionary(this.Tag, true));
146147
}
147148

148149
var secret = DataServiceClient.SetSecret(VaultName, Name, SecretValue, attributes);

0 commit comments

Comments
 (0)