Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #13201] Boolean values are not shown in import source preview table #602

Closed
icinga-migration opened this issue Nov 15, 2016 · 3 comments
Assignees
Labels
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/13201

Created by tobiasvdk on 2016-11-15 12:27:36 +00:00

Assignee: (none)
Status: New
Target Version: (none)
Last Update: 2016-11-25 14:04:02 +00:00 (in Redmine)


When I use the property modifier "Convert to a boolean value" this new value is not shown in the "Preview" table. The column is just blank. I would expect to see something like, e.g. "true" / "TRUE" / ... But how do I know if it's a string or a boolean then?

My use case is that I import host states from a CMDB and map them to "true" or "false". Afterwards I need to modify them to a boolean value to be able to set the "disabled" property of a host.

@icinga-migration
Copy link
Author

Updated by tobiasvdk on 2016-11-25 12:49:18 +00:00

It looks like converting to boolean FALSE does not work at all. TRUE is disabled as "1" in the table.

@icinga-migration
Copy link
Author

Updated by tgelf on 2016-11-25 14:00:07 +00:00

Does this only affect the preview, or also imported (synced) data?

@icinga-migration
Copy link
Author

Updated by tobiasvdk on 2016-11-25 14:04:02 +00:00

tgelf wrote:

Does this only affect the preview, or also imported (synced) data?
I just checked the database, also imported data is affected:

> select disabled from icinga_host where object_name = 'my-enabled-host';
+----------+
| disabled |
+----------+
| y        |
+----------+
1 row in set (0.00 sec)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants