mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 22:24:44 +02:00
ClassCompiler: Validate field types -> Icinga Name correctly
When the classcompiler is validating/transforming field types -> Icinga type names, it is currently returning Icinga `Number` type for field type of `bool`, which is actually wrong. This PR ensures to always transform into the correct Icinga type names.
This commit is contained in:
parent
3a8abdcc3b
commit
aa702b050c
@ -151,9 +151,6 @@ static std::string FieldTypeToIcingaName(const Field& field, bool inner)
|
||||
if (field.Attributes & FAEnum)
|
||||
return "Number";
|
||||
|
||||
if (ftype == "bool" || ftype == "int" || ftype == "double")
|
||||
return "Number";
|
||||
|
||||
if (ftype == "int" || ftype == "double")
|
||||
return "Number";
|
||||
else if (ftype == "bool")
|
||||
|
Loading…
x
Reference in New Issue
Block a user