diff --git a/XenModel/Actions/VM/ImportVmAction.cs b/XenModel/Actions/VM/ImportVmAction.cs index caec19bde..732b3763b 100644 --- a/XenModel/Actions/VM/ImportVmAction.cs +++ b/XenModel/Actions/VM/ImportVmAction.cs @@ -146,7 +146,7 @@ namespace XenAdmin.Actions throw new CancelledException(); isTemplate = VM.get_is_a_template(Session, vmRef); - if (isTemplate && VM.get_is_default_template(Session, vmRef)) + if (isTemplate && Helpers.FalconOrGreater(Connection) && VM.get_is_default_template(Session, vmRef)) { var otherConfig = VM.get_other_config(Session, vmRef); if (!otherConfig.ContainsKey(IMPORT_TASK) || otherConfig[IMPORT_TASK] != RelatedTask.opaque_ref) diff --git a/XenModel/XenAPI/VM.cs b/XenModel/XenAPI/VM.cs index a8559fa97..36122190a 100644 --- a/XenModel/XenAPI/VM.cs +++ b/XenModel/XenAPI/VM.cs @@ -1029,7 +1029,7 @@ namespace XenAPI /// /// Get the is_default_template field of the given VM. - /// First published in XenServer 7.1. + /// First published in XenServer 7.2. /// /// The session /// The opaque_ref of the given vm @@ -4282,7 +4282,7 @@ namespace XenAPI /// /// true if this is a default template. Default template VMs can never be started or migrated, they are used only for cloning other VMs - /// First published in XenServer 7.1. + /// First published in XenServer 7.2. /// public virtual bool is_default_template {