Skip to content

Commit

Permalink
Fix issue Azure#3217
Browse files Browse the repository at this point in the history
- If ApiId is not provided, generate it.
  • Loading branch information
solankisamir committed Nov 30, 2016
1 parent a3dff10 commit 190f429
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ public class ImportAzureApiManagementApi : AzureApiManagementCmdletBase

public override void ExecuteApiManagementCmdlet()
{
ApiId = ApiId ?? Guid.NewGuid().ToString("N");

if (ParameterSetName.Equals(FromLocalFile))
{
Client.ApiImportFromFile(Context, ApiId, SpecificationFormat, SpecificationPath, Path, WsdlServiceName, WsdlEndpointName);
Expand Down

0 comments on commit 190f429

Please sign in to comment.