mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 08:14:04 +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();
|
return $config->storeIfModified();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function wouldChange(DbConnection $connection)
|
||||||
|
{
|
||||||
|
$config = new static($connection);
|
||||||
|
return $config->hasBeenModified();
|
||||||
|
}
|
||||||
|
|
||||||
protected function hasBeenModified()
|
protected function hasBeenModified()
|
||||||
{
|
{
|
||||||
$this->generateFromDb();
|
$this->generateFromDb();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user