Skip to content

Commit

Permalink
Add a load_after dependency where applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed Sep 26, 2024
1 parent 92df9ef commit 17a28ac
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/icinga/dependency.ti
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class Dependency : CustomVarObject < DependencyNameComposer
{
load_after Host;
load_after Service;
load_after Endpoint;
load_after CheckCommand;
load_after EventCommand;
load_after TimePeriod;

[config, no_user_modify, required, navigation(child_host)] name(Host) child_host_name {
navigate {{{
Expand Down
4 changes: 4 additions & 0 deletions lib/icinga/host.ti
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ class Host : Checkable
load_after ApiListener;
load_after Endpoint;
load_after Zone;
load_after CheckCommand;
load_after EventCommand;
load_after HostGroup;
load_after TimePeriod;

[config, no_user_modify, required, signal_with_old_value] array(name(HostGroup)) groups {
default {{{ return new Array(); }}}
Expand Down
5 changes: 5 additions & 0 deletions lib/icinga/notification.ti
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ class Notification : CustomVarObject < NotificationNameComposer
{
load_after Host;
load_after Service;
load_after Endpoint;
load_after TimePeriod;
load_after NotificationCommand;
load_after User;
load_after UserGroup;

[config, protected, required, navigation] name(NotificationCommand) command (CommandRaw) {
navigate {{{
Expand Down
4 changes: 4 additions & 0 deletions lib/icinga/service.ti
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ class Service : Checkable < ServiceNameComposer
load_after Endpoint;
load_after Host;
load_after Zone;
load_after CheckCommand;
load_after EventCommand;
load_after ServiceGroup;
load_after TimePeriod;

[config, no_user_modify, required, signal_with_old_value] array(name(ServiceGroup)) groups {
default {{{ return new Array(); }}}
Expand Down
3 changes: 3 additions & 0 deletions lib/icinga/user.ti
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ namespace icinga

class User : CustomVarObject
{
load_after TimePeriod;
load_after UserGroup;

[config] String display_name {
get {{{
String displayName = m_DisplayName.load();
Expand Down

0 comments on commit 17a28ac

Please sign in to comment.