2013-05-02 22:15:50 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* Icinga 2 *
|
2017-01-10 15:54:22 +01:00
|
|
|
* Copyright (C) 2012-2017 Icinga Development Team (https://www.icinga.com/) *
|
2013-05-02 22:15:50 +02:00
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or *
|
|
|
|
* modify it under the terms of the GNU General Public License *
|
|
|
|
* as published by the Free Software Foundation; either version 2 *
|
|
|
|
* of the License, or (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
* along with this program; if not, write to the Free Software Foundation *
|
|
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
|
|
|
|
******************************************************************************/
|
|
|
|
|
2016-08-12 13:44:51 +02:00
|
|
|
System.assert(Internal.run_with_activation_context(function() {
|
2016-08-12 13:42:22 +02:00
|
|
|
var _Internal = Internal.clone()
|
|
|
|
|
2016-08-28 10:27:43 +02:00
|
|
|
template TimePeriod "legacy-timeperiod" use (_Internal) default {
|
2016-08-12 13:42:22 +02:00
|
|
|
update = _Internal.LegacyTimePeriod
|
2016-08-09 10:40:29 +02:00
|
|
|
}
|
|
|
|
}))
|
2016-08-12 13:42:22 +02:00
|
|
|
|
|
|
|
var methods = [
|
|
|
|
"LegacyTimePeriod"
|
|
|
|
]
|
|
|
|
|
|
|
|
for (method in methods) {
|
|
|
|
Internal.remove(method)
|
|
|
|
}
|