mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 15:29:26 +01:00
remove temporarly license restriction
This commit is contained in:
parent
836c644ce9
commit
4f4797307d
@ -1,44 +0,0 @@
|
|||||||
/*
|
|
||||||
*
|
|
||||||
* Copyright(c) 2018 XCP-ng Project
|
|
||||||
*
|
|
||||||
* The 2-Clause BSD License
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
||||||
*
|
|
||||||
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer
|
|
||||||
* in the documentation and/or other materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
||||||
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
||||||
* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
||||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
||||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace XenAPI
|
|
||||||
{
|
|
||||||
public static class HelperXCP_ng
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Restricts the license to on XCP-ng usable features
|
|
||||||
/// </summary>
|
|
||||||
public static void RestrictLicenseToXCPng(Dictionary<string, string> licenseParams)
|
|
||||||
{
|
|
||||||
if (licenseParams.ContainsKey("restrict_corosync"))
|
|
||||||
{
|
|
||||||
licenseParams["restrict_corosync"] = "true";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -3951,7 +3951,6 @@ namespace XenAPI
|
|||||||
if (!Helper.AreEqual(value, _license_params))
|
if (!Helper.AreEqual(value, _license_params))
|
||||||
{
|
{
|
||||||
_license_params = value;
|
_license_params = value;
|
||||||
HelperXCP_ng.RestrictLicenseToXCPng(value);
|
|
||||||
Changed = true;
|
Changed = true;
|
||||||
NotifyPropertyChanged("license_params");
|
NotifyPropertyChanged("license_params");
|
||||||
}
|
}
|
||||||
|
@ -370,7 +370,6 @@
|
|||||||
<DependentUpon>FriendlyErrorNames.resx</DependentUpon>
|
<DependentUpon>FriendlyErrorNames.resx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="XenAPI\GPU_group.cs" />
|
<Compile Include="XenAPI\GPU_group.cs" />
|
||||||
<Compile Include="XenAPI\HelperXCP-ng.cs" />
|
|
||||||
<Compile Include="XenAPI\host_allowed_operations.cs" />
|
<Compile Include="XenAPI\host_allowed_operations.cs" />
|
||||||
<Compile Include="XenAPI\host_display.cs" />
|
<Compile Include="XenAPI\host_display.cs" />
|
||||||
<Compile Include="XenAPI\ipv6_configuration_mode.cs" />
|
<Compile Include="XenAPI\ipv6_configuration_mode.cs" />
|
||||||
|
Loading…
Reference in New Issue
Block a user