Skip to content

Commit abc3342

Browse files
vladraiHovsep
authored andcommitted
Incorrect confirmation behavior bug fixes (#2591)
1 parent 342edc8 commit abc3342

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/ResourceManager/Dns/Commands.Dns/Records/NewAzureDnsRescordSet.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ public class NewAzureDnsRecordSet : DnsBaseCmdlet
6666

6767
public override void ExecuteCmdlet()
6868
{
69-
WriteWarning("The output object type of this cmdlet will be modified in a future release. Also, the usability of Tag parameter in this cmdlet will be modified in a future release. This will impact creating, updating and appending tags for Azure resources. For more details about the change, please visit https://github.com/Azure/azure-powershell/issues/726#issuecomment-213545494");
70-
7169
string zoneName = null;
7270
string resourceGroupname = null;
7371
DnsRecordSet result = null;

src/ResourceManager/Dns/Commands.Dns/Records/RemoveAzureDnsRecordSet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public override void ExecuteCmdlet()
137137
WriteObject(deleted);
138138
}
139139
},
140-
() => overwrite);
140+
() => true);
141141
}
142142
}
143143
}

src/ResourceManager/Dns/Commands.Dns/Zones/RemoveAzureDnsZone.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public override void ExecuteCmdlet()
8282
Force.IsPresent,
8383
string.Format(ProjectResources.Confirm_RemoveZone, zoneToDelete.Name),
8484
ProjectResources.Progress_RemovingZone,
85-
this.Name,
85+
zoneToDelete.Name,
8686
() =>
8787
{
8888
deleted = DnsClient.DeleteDnsZone(zoneToDelete, overwrite);
@@ -95,15 +95,15 @@ public override void ExecuteCmdlet()
9595
else
9696
{
9797
WriteVerbose(ProjectResources.Success);
98-
WriteWarning(string.Format(ProjectResources.Success_NonExistentZone, this.Name, this.ResourceGroupName));
98+
WriteWarning(string.Format(ProjectResources.Success_NonExistentZone, zoneToDelete.Name, this.ResourceGroupName));
9999
}
100100

101101
if (this.PassThru)
102102
{
103103
WriteObject(deleted);
104104
}
105105
},
106-
() => overwrite);
106+
() => true);
107107
}
108108
}
109109
}

0 commit comments

Comments
 (0)