Skip to content

Commit 1c33c08

Browse files
committed
more cleanup of unintended changes
1 parent dc92cd1 commit 1c33c08

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

src/Resources/ResourceManager/Implementation/CmdletBase/ResourceWithParameterCmdletBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ protected override void OnBeginProcessing()
186186

187187
public new virtual object GetDynamicParameters()
188188
{
189-
if (BicepUtility.IsBicepFile(TemplateUri))
189+
if (BicepUtility.IsBicepFile(TemplateUri))
190190
{
191191
throw new NotSupportedException($"'-TemplateUri {TemplateUri}' is not supported. Please download the bicep file and pass it using -TemplateFile.");
192192
}

src/Resources/ResourceManager/Implementation/Deployments/GetAzureSubscriptionDeploymentCmdlet.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ protected override void OnProcessRecord()
5555
{
5656
DeploymentName = this.Name ?? (string.IsNullOrEmpty(this.Id) ? null : ResourceIdUtility.GetResourceName(this.Id))
5757
};
58+
5859
WriteObject(ResourceManagerSdkClient.FilterDeployments(options), true);
5960
}
6061
}

src/Resources/ResourceManager/SdkClient/ResourceManagerSdkClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,6 +1470,7 @@ private DeploymentExtended ExecuteDeploymentInternal(PSDeploymentCmdletParameter
14701470
this.BeginDeployment(parameters, deployment);
14711471

14721472
WriteVerbose(string.Format(ProjectResources.CreatedDeployment, parameters.DeploymentName));
1473+
14731474
return ProvisionDeploymentStatus(parameters, deployment);
14741475
}
14751476

src/Resources/ResourceManager/SdkExtensions/ResourcesExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ public static string ConstructTagsTable(Hashtable tags)
176176
return resourcesTable.ToString();
177177
}
178178

179+
// TODO: This function and the above tags contruction function could be combined into one function.
180+
// Leaving for now to avoid introducing problems in existing code.
179181
public static string ConstructTagsTableFromIDictionary(IDictionary<string, string> tags)
180182
{
181-
// TODO: Can I change existing code?
182-
183183
if (tags == null || tags.Count == 0)
184184
{
185185
return null;

0 commit comments

Comments
 (0)