mirror of https://github.com/Icinga/icinga2.git
Renamed 'alias' property to 'display_name'.
This commit is contained in:
parent
c3dce7893c
commit
2118e4b490
|
@ -52,7 +52,7 @@ Host::~Host(void)
|
|||
|
||||
String Host::GetDisplayName(void) const
|
||||
{
|
||||
String value = Get("alias");
|
||||
String value = Get("display_name");
|
||||
if (!value.IsEmpty())
|
||||
return value;
|
||||
else
|
||||
|
@ -213,7 +213,7 @@ void Host::UpdateSlaveServices(void)
|
|||
builder->SetType("Service");
|
||||
builder->SetName(name);
|
||||
builder->AddExpression("host_name", OperatorSet, GetName());
|
||||
builder->AddExpression("alias", OperatorSet, svcname);
|
||||
builder->AddExpression("display_name", OperatorSet, svcname);
|
||||
builder->AddExpression("short_name", OperatorSet, svcname);
|
||||
|
||||
CopyServiceAttributes<false>(this, builder);
|
||||
|
|
|
@ -32,7 +32,7 @@ HostGroup::HostGroup(const Dictionary::Ptr& properties)
|
|||
|
||||
String HostGroup::GetDisplayName(void) const
|
||||
{
|
||||
String value = Get("alias");
|
||||
String value = Get("display_name");
|
||||
|
||||
if (!value.IsEmpty())
|
||||
return value;
|
||||
|
|
|
@ -59,7 +59,7 @@ Service::~Service(void)
|
|||
|
||||
String Service::GetDisplayName(void) const
|
||||
{
|
||||
String value = Get("alias");
|
||||
String value = Get("display_name");
|
||||
|
||||
if (!value.IsEmpty())
|
||||
return value;
|
||||
|
|
|
@ -32,7 +32,7 @@ ServiceGroup::ServiceGroup(const Dictionary::Ptr& properties)
|
|||
|
||||
String ServiceGroup::GetDisplayName(void) const
|
||||
{
|
||||
String value = Get("alias");
|
||||
String value = Get("display_name");
|
||||
|
||||
if (!value.IsEmpty())
|
||||
return value;
|
||||
|
|
Loading…
Reference in New Issue