mirror of https://github.com/Icinga/icinga2.git
config: Rename servicedependencies/hostdependencies.
This commit is contained in:
parent
0b265c18af
commit
414d8c80bc
|
@ -663,8 +663,8 @@ void Host::InternalSerialize(const Dictionary::Ptr& bag, int attributeTypes) con
|
|||
bag->Set("display_name", m_DisplayName);
|
||||
bag->Set("groups", m_Groups);
|
||||
bag->Set("macros", m_Macros);
|
||||
bag->Set("hostdependencies", m_HostDependencies);
|
||||
bag->Set("servicedependencies", m_ServiceDependencies);
|
||||
bag->Set("host_dependencies", m_HostDependencies);
|
||||
bag->Set("service_dependencies", m_ServiceDependencies);
|
||||
bag->Set("check", m_Check);
|
||||
bag->Set("services", m_ServiceDescriptions);
|
||||
bag->Set("notifications", m_NotificationDescriptions);
|
||||
|
@ -679,8 +679,8 @@ void Host::InternalDeserialize(const Dictionary::Ptr& bag, int attributeTypes)
|
|||
m_DisplayName = bag->Get("display_name");
|
||||
m_Groups = bag->Get("groups");
|
||||
m_Macros = bag->Get("macros");
|
||||
m_HostDependencies = bag->Get("hostdependencies");
|
||||
m_ServiceDependencies = bag->Get("servicedependencies");
|
||||
m_HostDependencies = bag->Get("host_dependencies");
|
||||
m_ServiceDependencies = bag->Get("service_dependencies");
|
||||
m_Check = bag->Get("check");
|
||||
m_ServiceDescriptions = bag->Get("services");
|
||||
m_NotificationDescriptions = bag->Get("notifications");
|
||||
|
|
|
@ -23,10 +23,10 @@ type Host {
|
|||
%attribute array "groups" {
|
||||
%attribute name(HostGroup) "*"
|
||||
},
|
||||
%attribute array "hostdependencies" {
|
||||
%attribute array "host_dependencies" {
|
||||
%attribute name(Host) "*"
|
||||
},
|
||||
%attribute array "servicedependencies" {
|
||||
%attribute array "service_dependencies" {
|
||||
%attribute dictionary "*" {
|
||||
%require "host",
|
||||
%attribute name(Host) "host",
|
||||
|
@ -83,10 +83,10 @@ type Service {
|
|||
|
||||
%attribute number "volatile",
|
||||
|
||||
%attribute array "hostdependencies" {
|
||||
%attribute array "host_dependencies" {
|
||||
%attribute name(Host) "*"
|
||||
},
|
||||
%attribute array "servicedependencies" {
|
||||
%attribute array "service_dependencies" {
|
||||
%attribute dictionary "*" {
|
||||
%require "host",
|
||||
%attribute name(Host) "host",
|
||||
|
|
|
@ -412,8 +412,8 @@ void Service::InternalSerialize(const Dictionary::Ptr& bag, int attributeTypes)
|
|||
if (attributeTypes & Attribute_Config) {
|
||||
bag->Set("display_name", m_DisplayName);
|
||||
bag->Set("macros", m_Macros);
|
||||
bag->Set("hostdependencies", m_HostDependencies);
|
||||
bag->Set("servicedependencies", m_ServiceDependencies);
|
||||
bag->Set("host_dependencies", m_HostDependencies);
|
||||
bag->Set("service_dependencies", m_ServiceDependencies);
|
||||
bag->Set("servicegroups", m_ServiceGroups);
|
||||
bag->Set("check_command", m_CheckCommand);
|
||||
bag->Set("max_check_attempts", m_MaxCheckAttempts);
|
||||
|
@ -470,8 +470,8 @@ void Service::InternalDeserialize(const Dictionary::Ptr& bag, int attributeTypes
|
|||
if (attributeTypes & Attribute_Config) {
|
||||
m_DisplayName = bag->Get("display_name");
|
||||
m_Macros = bag->Get("macros");
|
||||
m_HostDependencies = bag->Get("hostdependencies");
|
||||
m_ServiceDependencies = bag->Get("servicedependencies");
|
||||
m_HostDependencies = bag->Get("host_dependencies");
|
||||
m_ServiceDependencies = bag->Get("service_dependencies");
|
||||
m_ServiceGroups = bag->Get("servicegroups");
|
||||
m_CheckCommand = bag->Get("check_command");
|
||||
m_MaxCheckAttempts = bag->Get("max_check_attempts");
|
||||
|
|
Loading…
Reference in New Issue