mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 14:27:26 +01:00
Merge pull request #386 from GaborApatiNagy/CA-163778
CA-163778: [CAR-1711] Cleanup not working
This commit is contained in:
commit
63c0187ffe
@ -56,7 +56,10 @@ namespace XenAdmin.Actions
|
||||
Description = String.Format(Messages.ACTION_CLEANUP_DISK_SPACE_DESCRIPTION, Host.Name);
|
||||
try
|
||||
{
|
||||
var args = new Dictionary<string, string> {{"exclude", excludedPatch.uuid}};
|
||||
var args = new Dictionary<string, string>();
|
||||
if (excludedPatch != null)
|
||||
args.Add("exclude", excludedPatch.uuid);
|
||||
|
||||
Result = Host.call_plugin(Session, Host.opaque_ref, "disk-space", "cleanup_disk_space", args);
|
||||
if (Result.ToLower() == "true")
|
||||
Description = String.Format(Messages.ACTION_CLEANUP_DISK_SPACE_SUCCESS, Host.Name);
|
||||
|
Loading…
Reference in New Issue
Block a user