aws / aws-tools-for-powershell

The AWS Tools for PowerShell lets developers and administrators manage their AWS services from the PowerShell scripting environment.
Apache License 2.0
238 stars 79 forks source link

Incorrect cmdlet name returned by Get-AWSCmdletName #70

Closed PowerSix closed 4 years ago

PowerSix commented 4 years ago

Issue detected in AWS.Tools.Common 4.0.0.0. Duplicated service tags are being returned in cmdlet names.

Expected Behavior

This is the output from AWSPowerShell module:

PS> Get-AWSCmdletName -ApiOperation describeinstances

CmdletName       ServiceOperation  ServiceName                  CmdletNounPrefix
----------       ----------------  -----------                  ----------------
Get-EC2Instance  DescribeInstances Amazon Elastic Compute Cloud EC2
Get-GMLInstance  DescribeInstances Amazon GameLift Service      GML
Get-OPSInstances DescribeInstances AWS OpsWorks                 OPS

Current Behavior

This is the output from AWS.Tools 4.0.0.0. Cmdlet names have 'service initials' returned twice: Get-EC2EC2Instance, Get-GMLGMLInstance...

PS> Get-AWSCmdletName -ApiOperation describeinstances

CmdletName         ServiceOperation  ServiceName                        ModuleName
----------         ----------------  -----------                        ----------
Get-EC2EC2Instance DescribeInstances Amazon Elastic Compute Cloud (EC2) AWS.Tools.EC2
Get-GMLGMLInstance DescribeInstances Amazon GameLift Service            AWS.Tools.GameLift
Get-OPSOP*Instance DescribeInstances AWS OpsWorks                       AWS.Tools.OpsWorks

Your Environment

matteo-prosperi commented 4 years ago

Thanks for reporting this issue, it will be fixed in the next release.

matteo-prosperi commented 4 years ago

This is addressed in https://github.com/aws/aws-tools-for-powershell/pull/71 and scheduled for the upcoming release.

matteo-prosperi commented 4 years ago

Hello, this issue was addressed. I am closing it, please reopen it in case you experience further issues. Thanks