Skip to content

Commit c667e51

Browse files
author
Stephen Turner
committed
CP-14647: Intermediate check-in xenserver#3
1 parent cf65342 commit c667e51

30 files changed

+460
-3340
lines changed

XenAdmin/Commands/ImportStorageLinkVolumeCommand.cs

-99
This file was deleted.

XenAdmin/Commands/NewSRCommand.cs

+1-19
Original file line numberDiff line numberDiff line change
@@ -90,25 +90,7 @@ private static bool CanExecuteOnPool(Pool pool)
9090

9191
protected override bool CanExecuteCore(SelectedItemCollection selection)
9292
{
93-
if (selection.Count == 1 && selection.FirstIsStorageLink)
94-
{
95-
var storageLinkObject = (IStorageLinkObject)selection[0].XenObject;
96-
97-
if (storageLinkObject is StorageLinkServer || storageLinkObject is StorageLinkSystem || storageLinkObject is StorageLinkPool)
98-
{
99-
if (storageLinkObject.StorageLinkConnection.ConnectionState == XenAdmin.Network.StorageLink.StorageLinkConnectionState.Connected)
100-
{
101-
foreach (IXenConnection c in ConnectionsManager.XenConnectionsCopy)
102-
{
103-
if (c.IsConnected && CanExecuteOnPool(Helpers.GetPool(c)) || CanExecuteOnHost(Helpers.GetMaster(c)))
104-
{
105-
return true;
106-
}
107-
}
108-
}
109-
}
110-
}
111-
else if (selection.HostAncestor != null)
93+
if (selection.HostAncestor != null)
11294
{
11395
return CanExecuteOnHost(selection.HostAncestor);
11496
}

XenAdmin/Commands/RemoveStorageLinkVolumeCommand.cs

-124
This file was deleted.

0 commit comments

Comments
 (0)