Skip to content

Commit 5fc8a1a

Browse files
committed
[UVHD Tenant Admin] Add admin cmdlet to delete and copy UVHD part 5
1 parent 5f212ad commit 5fc8a1a

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

src/ServiceManagement/RemoteApp/Commands.RemoteApp.Test/Commands.RemoteApp.Test.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@
145145
<SpecificVersion>False</SpecificVersion>
146146
<HintPath>..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll</HintPath>
147147
</Reference>
148-
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
149148
<Reference Include="Microsoft.WindowsAzure.Management">
150149
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.4.1.1\lib\net40\Microsoft.WindowsAzure.Management.dll</HintPath>
151150
</Reference>

src/ServiceManagement/RemoteApp/Commands.RemoteApp/UserDisk/CopyAzureRemoteAppUserDisk.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ public class CopyAzureRemoteAppUserDisk : RdsCmdlet
4848

4949
public override void ExecuteCmdlet()
5050
{
51-
AzureOperationResponse response = null;
52-
response = CallClient(() => Client.UserDisks.Copy(SourceCollectionName, DestinationCollectionName, UserUpn, OverwriteExistingUserDisk.IsPresent), Client.UserDisks);
51+
CallClient(() => Client.UserDisks.Copy(SourceCollectionName, DestinationCollectionName, UserUpn, OverwriteExistingUserDisk.IsPresent), Client.UserDisks);
5352
}
5453
}
5554
}

src/ServiceManagement/RemoteApp/Commands.RemoteApp/UserDisk/RemoveAzureRemoteAppUserDisk.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,9 @@ public class RemoveAzureRemoteAppUserDisk : RdsCmdlet
3838

3939
public override void ExecuteCmdlet()
4040
{
41-
AzureOperationResponse response = null;
42-
4341
if (ShouldProcess(UserUpn, "Remove user disk"))
4442
{
45-
response = CallClient(() => Client.UserDisks.Delete(CollectionName, UserUpn), Client.UserDisks);
43+
CallClient(() => Client.UserDisks.Delete(CollectionName, UserUpn), Client.UserDisks);
4644
}
4745
}
4846
}

0 commit comments

Comments
 (0)