Skip to content

Commit 4528a48

Browse files
committed
Resolve storage unit test issue.
1 parent 1cd207d commit 4528a48

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

setup/azurecmdfiles.wxi

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -829,9 +829,6 @@
829829
<Component Id="cmp5705CFB01232C814C9F376E8BD72C6A9" Guid="*">
830830
<File Id="filA1CEB5C190533E13ED3888E1A3E4EE0E" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\Compute\Microsoft.WindowsAzure.Commands.WebSites.Types.ps1xml" />
831831
</Component>
832-
<Component Id="cmp30653BC5E58466A843826FFD56DA69CF" Guid="*">
833-
<File Id="fil98739FE5B0364C68F92F337738738F68" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\Compute\Microsoft.WindowsAzure.Configuration.dll" />
834-
</Component>
835832
<Component Id="cmpB3E0988D507FCECBEC2C992B92E3920F" Guid="*">
836833
<File Id="filD4385B21F65B6D462CCD029613959F95" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\Compute\Microsoft.WindowsAzure.Management.dll" />
837834
</Component>
@@ -1155,9 +1152,6 @@
11551152
<Component Id="cmp667B7A1CD97B13D70F6CFA9D955799A6" Guid="*">
11561153
<File Id="fil51C0DF0D652E5ADBF17624B351AD692B" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\DataFactories\Microsoft.WindowsAzure.Commands.Profile.format.ps1xml" />
11571154
</Component>
1158-
<Component Id="cmpA6DD76F2CE256E42641B7CC31386A776" Guid="*">
1159-
<File Id="filF406759FFC8FF388A46EA4CA8D6B47BA" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\DataFactories\Microsoft.WindowsAzure.Configuration.dll" />
1160-
</Component>
11611155
<Component Id="cmpC8BA74B745B52059308DE7A6D162EE8F" Guid="*">
11621156
<File Id="filFB97CF0896BE2E3AD239ECD2BEB749C2" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\DataFactories\Microsoft.WindowsAzure.Management.dll" />
11631157
</Component>
@@ -1395,9 +1389,6 @@
13951389
<Component Id="cmp5CEBB63124C5833CCFA24A6D28E11CC9" Guid="*">
13961390
<File Id="filDB364E77519F6ACAA5B9CE685AB1AFB4" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\Insights\Microsoft.WindowsAzure.Storage.dll" />
13971391
</Component>
1398-
<Component Id="cmpF5AF8CEC5E3C01F32D02BF852FD840AC" Guid="*">
1399-
<File Id="fil3E19CAF38E35341A8646C8D13141B4E5" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\Insights\Newtonsoft.Json.dll" />
1400-
</Component>
14011392
<Component Id="cmp5D4BF2AFED5DA226237313E9C2F8099B" Guid="*">
14021393
<File Id="filC27FF716D5D45BE809FDF4A013ED221B" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\Insights\System.Net.Http.Formatting.dll" />
14031394
</Component>
@@ -2494,9 +2485,6 @@
24942485
<Component Id="cmp55D02154CBD597E4C34E832780CAB861" Guid="*">
24952486
<File Id="filA716691369DC23F18A82F5CC795AA248" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\StreamAnalytics\Microsoft.WindowsAzure.Commands.Profile.format.ps1xml" />
24962487
</Component>
2497-
<Component Id="cmp3E80CDE849B274075168444B89F66D73" Guid="*">
2498-
<File Id="fil767EC14BF550F3799EE3FFA5AF56238E" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\StreamAnalytics\Microsoft.WindowsAzure.Configuration.dll" />
2499-
</Component>
25002488
<Component Id="cmpC1532ADE5FB25EC226C31BD06FDC7C20" Guid="*">
25012489
<File Id="fil3A690321104497483F4E01E040E5BFBD" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\StreamAnalytics\Microsoft.WindowsAzure.Management.dll" />
25022490
</Component>
@@ -5227,7 +5215,6 @@
52275215
<ComponentRef Id="cmp4C111D872C25352B90FF2BC0A0780E50" />
52285216
<ComponentRef Id="cmpB287F6D4D7B1B7512B59CE52EB810D94" />
52295217
<ComponentRef Id="cmp5705CFB01232C814C9F376E8BD72C6A9" />
5230-
<ComponentRef Id="cmp30653BC5E58466A843826FFD56DA69CF" />
52315218
<ComponentRef Id="cmpB3E0988D507FCECBEC2C992B92E3920F" />
52325219
<ComponentRef Id="cmpBFCB1E992759555E524E0637A72EE14B" />
52335220
<ComponentRef Id="cmp02F11033E68D6FED58954A529B7DC8CC" />
@@ -5325,7 +5312,6 @@
53255312
<ComponentRef Id="cmp3E8E747FAA6B7858FFCA940740658BD5" />
53265313
<ComponentRef Id="cmp5364EF7068CE1CD568984E413222A1B9" />
53275314
<ComponentRef Id="cmp667B7A1CD97B13D70F6CFA9D955799A6" />
5328-
<ComponentRef Id="cmpA6DD76F2CE256E42641B7CC31386A776" />
53295315
<ComponentRef Id="cmpC8BA74B745B52059308DE7A6D162EE8F" />
53305316
<ComponentRef Id="cmp76BB7CDB96C84A2462BB6AE77257DDF6" />
53315317
<ComponentRef Id="cmp5B21FDE396B40BC62C2A08FB8F9ECFFB" />
@@ -5403,7 +5389,6 @@
54035389
<ComponentRef Id="cmp209CCEE0DCF9E72717C6DEDE4C8984E1" />
54045390
<ComponentRef Id="cmp7BECB13532E43A81AFC0959E29FF1F56" />
54055391
<ComponentRef Id="cmp5CEBB63124C5833CCFA24A6D28E11CC9" />
5406-
<ComponentRef Id="cmpF5AF8CEC5E3C01F32D02BF852FD840AC" />
54075392
<ComponentRef Id="cmp5D4BF2AFED5DA226237313E9C2F8099B" />
54085393
<ComponentRef Id="cmp0BBA12BCAEC94783EC690D768E1A9476" />
54095394
<ComponentRef Id="cmp704145D9362A78B6368BC991ADFDDD72" />
@@ -5762,7 +5747,6 @@
57625747
<ComponentRef Id="cmp07AAE83D7AB784DEF2482743A904A656" />
57635748
<ComponentRef Id="cmpA6269058AD07EC84DD573E192B4A56B9" />
57645749
<ComponentRef Id="cmp55D02154CBD597E4C34E832780CAB861" />
5765-
<ComponentRef Id="cmp3E80CDE849B274075168444B89F66D73" />
57665750
<ComponentRef Id="cmpC1532ADE5FB25EC226C31BD06FDC7C20" />
57675751
<ComponentRef Id="cmp97FEBF68F374AAB490FD2806F831D8E1" />
57685752
<ComponentRef Id="cmp80FE7A56B007BCFE285874C5F279A7FB" />

src/ServiceManagement/Storage/Commands.Storage/Blob/Cmdlet/RemoveAzureStorageBlob.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ public RemoveStorageAzureBlobCommand(IStorageBlobManagement channel)
114114
/// <returns>true if the blob is removed successfully, false if user cancel the remove operation</returns>
115115
internal async Task RemoveAzureBlob(long taskId, IStorageBlobManagement localChannel, CloudBlob blob, bool isValidBlob)
116116
{
117-
ValidateBlobType(blob);
118-
119117
if (!isValidBlob)
120118
{
121119
ValidatePipelineCloudBlob(blob);
122120
}
123121

122+
ValidateBlobType(blob);
123+
124124
DeleteSnapshotsOption deleteSnapshotsOption = DeleteSnapshotsOption.None;
125125
bool retryDeleteSnapshot = false;
126126

0 commit comments

Comments
 (0)