mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
ConfigPackageUtility::ValidatePackageName(): always tolerate already existing packages
... not to require migrating invalid ones.
This commit is contained in:
parent
c1df4b70f5
commit
57df803e35
@ -370,7 +370,7 @@ bool ConfigPackageUtility::ContainsDotDot(const String& path)
|
||||
|
||||
bool ConfigPackageUtility::ValidatePackageName(const String& packageName)
|
||||
{
|
||||
return ValidateFreshName(packageName);
|
||||
return ValidateFreshName(packageName) || PackageExists(packageName);
|
||||
}
|
||||
|
||||
bool ConfigPackageUtility::ValidateFreshName(const String& name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user