Skip to content

Commit

Permalink
CP-14647: Intermediate check-in xenserver#3
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Turner committed Oct 27, 2015
1 parent 55c60c3 commit 0dd8f9c
Show file tree
Hide file tree
Showing 30 changed files with 460 additions and 3,340 deletions.
99 changes: 0 additions & 99 deletions XenAdmin/Commands/ImportStorageLinkVolumeCommand.cs

This file was deleted.

20 changes: 1 addition & 19 deletions XenAdmin/Commands/NewSRCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,25 +90,7 @@ private static bool CanExecuteOnPool(Pool pool)

protected override bool CanExecuteCore(SelectedItemCollection selection)
{
if (selection.Count == 1 && selection.FirstIsStorageLink)
{
var storageLinkObject = (IStorageLinkObject)selection[0].XenObject;

if (storageLinkObject is StorageLinkServer || storageLinkObject is StorageLinkSystem || storageLinkObject is StorageLinkPool)
{
if (storageLinkObject.StorageLinkConnection.ConnectionState == XenAdmin.Network.StorageLink.StorageLinkConnectionState.Connected)
{
foreach (IXenConnection c in ConnectionsManager.XenConnectionsCopy)
{
if (c.IsConnected && CanExecuteOnPool(Helpers.GetPool(c)) || CanExecuteOnHost(Helpers.GetMaster(c)))
{
return true;
}
}
}
}
}
else if (selection.HostAncestor != null)
if (selection.HostAncestor != null)
{
return CanExecuteOnHost(selection.HostAncestor);
}
Expand Down
124 changes: 0 additions & 124 deletions XenAdmin/Commands/RemoveStorageLinkVolumeCommand.cs

This file was deleted.

Loading

0 comments on commit 0dd8f9c

Please sign in to comment.