mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
CA-349194: Prevent crash when initialising a disk image import.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
parent
d7512d14c7
commit
07ae413e15
@ -61,9 +61,9 @@ namespace XenAdmin.Actions.OvfActions
|
||||
|
||||
public ImportApplianceAction(IXenConnection connection, Package package, Dictionary<string, VmMapping> vmMappings,
|
||||
bool verifyManifest, bool verifySignature, string password, bool runfixups, SR selectedIsoSr, bool startAutomatically)
|
||||
: base(connection, string.Format(Messages.IMPORT_APPLIANCE, package.Name, Helpers.GetName(connection)))
|
||||
: base(connection, string.Empty)
|
||||
{
|
||||
m_package = package;
|
||||
m_package = package; //this is null if importing a disk Image
|
||||
m_vmMappings = vmMappings;
|
||||
m_verifyManifest = verifyManifest;
|
||||
m_verifySignature = verifySignature;
|
||||
@ -71,6 +71,9 @@ namespace XenAdmin.Actions.OvfActions
|
||||
m_runfixups = runfixups;
|
||||
m_selectedIsoSr = selectedIsoSr;
|
||||
_startAutomatically = startAutomatically;
|
||||
|
||||
if (package != null)
|
||||
Title = string.Format(Messages.IMPORT_APPLIANCE, package.Name, Helpers.GetName(connection));
|
||||
}
|
||||
|
||||
protected override void RunCore()
|
||||
|
Loading…
Reference in New Issue
Block a user