Skip to content

Commit 245e738

Browse files
committed
Added ConfirmAction to Add-AzureRmHDInsightComponentVersion cmdlet
1 parent 4952670 commit 245e738

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/ResourceManager/HDInsight/Commands.HDInsight/ManagementCommands/AddAzureHDInsightComponentVersionCommand.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,12 @@ public class AddAzureHDInsightComponentVersionCommand : HDInsightCmdletBase
4747

4848
public override void ExecuteCmdlet()
4949
{
50-
Config.ComponentVersion.Add(ComponentName, ComponentVersion);
51-
WriteObject(Config);
50+
ConfirmAction("Adding Component Version", Name,
51+
() =>
52+
{
53+
Config.ComponentVersion.Add(ComponentName, ComponentVersion);
54+
WriteObject(Config);
55+
})
5256
}
5357
}
5458
}

0 commit comments

Comments
 (0)