mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 00:04:05 +02:00
IcingaConfig: tell whether config would change
This commit is contained in:
parent
de3c824fb2
commit
4f64d79e15
@ -89,6 +89,12 @@ class IcingaConfig
|
||||
return $config->storeIfModified();
|
||||
}
|
||||
|
||||
public static function wouldChange(DbConnection $connection)
|
||||
{
|
||||
$config = new static($connection);
|
||||
return $config->hasBeenModified();
|
||||
}
|
||||
|
||||
protected function hasBeenModified()
|
||||
{
|
||||
$this->generateFromDb();
|
||||
|
Loading…
x
Reference in New Issue
Block a user