mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Make sure the CGIs don't croak on our objects.cache file.
This commit is contained in:
parent
03e019580a
commit
eb95e9a718
@ -232,7 +232,8 @@ void CompatComponent::DumpComments(std::ostream& fp, const Service::Ptr& owner,
|
|||||||
void CompatComponent::DumpTimePeriod(std::ostream& fp, const TimePeriod::Ptr& tp)
|
void CompatComponent::DumpTimePeriod(std::ostream& fp, const TimePeriod::Ptr& tp)
|
||||||
{
|
{
|
||||||
fp << "define timeperiod {" << "\n"
|
fp << "define timeperiod {" << "\n"
|
||||||
<< "\t" << "timeperiod_name" << "\t" << tp->GetName() << "\n";
|
<< "\t" << "timeperiod_name" << "\t" << tp->GetName() << "\n"
|
||||||
|
<< "\t" << "alias" << "\t" << tp->GetName() << "\n";
|
||||||
|
|
||||||
Dictionary::Ptr ranges = tp->Get("ranges");
|
Dictionary::Ptr ranges = tp->Get("ranges");
|
||||||
|
|
||||||
@ -267,8 +268,10 @@ void CompatComponent::DumpCommand(std::ostream& fp, const Command::Ptr& command)
|
|||||||
// This is obviously incorrect for non-trivial cases.
|
// This is obviously incorrect for non-trivial cases.
|
||||||
fp << " \"" << arg << "\"";
|
fp << " \"" << arg << "\"";
|
||||||
}
|
}
|
||||||
|
} else if (!commandLine.IsEmpty()) {
|
||||||
|
fp << Convert::ToString(commandLine);
|
||||||
} else {
|
} else {
|
||||||
fp << Convert::ToString(commandLine) << "\n";
|
fp << "<internal>";
|
||||||
}
|
}
|
||||||
|
|
||||||
fp << "\n";
|
fp << "\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user