Jira (FACT-627) Boolean facts not printed with facter -p if fact value is false
Title: Message Title Maggie Dreyer updated an issue Facter / FACT-627 Boolean facts not printed with facter -p if fact value is false Change By: Maggie Dreyer Labels: triaged Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (FACT-627) Boolean facts not printed with facter -p if fact value is false
Title: Message Title Adrien Thebo commented on FACT-627 Re: Boolean facts not printed with facter -p if fact value is false Looking at this issue indicates that this fix only applied to custom Ruby facts, not external facts. The fix shouldn't be too complex, just a nil check vs a boolean truth check. However we're only doing security releases for Facter 2.x, aren't actively developing against 2.x, and currently have no releases planned. The last release of Facter 2.x was 2.4.6 and was released in January so we're not doing releases that often for 2.x. Pull requests are welcome for this issue and I'm willing to help with that, but given our current lack of a release schedule I can't guarantee when or if this fix would be released. Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (FACT-627) Boolean facts not printed with facter -p if fact value is false
Title: Message Title Robin Bowes commented on FACT-627 Re: Boolean facts not printed with facter -p if fact value is false Two years old... Any plans to address this? Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (FACT-627) Boolean facts not printed with facter -p if fact value is false
Title: Message Title Anton Fomenko commented on FACT-627 Re: Boolean facts not printed with facter -p if fact value is false Reproducible on 2.4 Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (FACT-627) Boolean facts not printed with facter -p if fact value is false
Title: Message Title Adrien Thebo commented on an issue Re: Boolean facts not printed with facter -p if fact value is false Martin Westergaard Lassen Non-string fact values in Facter 1.7 were not supported and 1.7.x is only receiving security updates, so we will not be backporting this into 1.7.x. Add Comment Facter / FACT-627 Boolean facts not printed with facter -p if fact value is false Boolean facts are not printed with facter -p if the fact value is false. Example (using a custom fact): {noformat} [root@cxdrun01 ~]# facter -p | grep is_cde is_cde = true [root@cxdrun01 ~]# facter -p is_cde true # fiddle the is_cde fact to be false here [root@cxdrun01 ~]# facter -p | grep is_cde is_cde = false [root@cxdrun01 ~]# facter -p i... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more
Jira (FACT-627) Boolean facts not printed with facter -p if fact value is false
Title: Message Title Martin Westergaard Lassen commented on an issue Re: Boolean facts not printed with facter -p if fact value is false Any chance this will make it into 1.7? We've seen this behaviour on 1.7.4. Add Comment Facter / FACT-627 Boolean facts not printed with facter -p if fact value is false Boolean facts are not printed with facter -p if the fact value is false. Example (using a custom fact): {noformat} [root@cxdrun01 ~]# facter -p | grep is_cde is_cde = true [root@cxdrun01 ~]# facter -p is_cde true # fiddle the is_cde fact to be false here [root@cxdrun01 ~]# facter -p | grep is_cde is_cde = false [root@cxdrun01 ~]# facter -p i... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (FACT-627) Boolean facts not printed with facter -p if fact value is false
Title: Message Title Adrien Thebo commented on an issue Re: Boolean facts not printed with facter -p if fact value is false Verified with the following: Facter.add(:falsey) do setcode { false } end └ bundle exec facter falsey false ┌[adrien☮grey]-(~/eng/projects/platform/facter)-[git://master ✗]- └ bundle exec facter -j falsey { falsey: false } Add Comment Facter / FACT-627 Boolean facts not printed with facter -p if fact value is false Boolean facts are not printed with facter -p if the fact value is false. Example (using a custom fact): {noformat} [root@cxdrun01 ~]# facter -p | grep is_cde is_cde = true [root@cxdrun01 ~]# facter -p is_cde true # fiddle the is_cde fact to be false here [root@cxdrun01 ~]# facter -p | grep is_cde is_cde = false [root@cxdrun01 ~]# facter -p i... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)
Jira (FACT-627) Boolean facts not printed with facter -p if fact value is false
Title: Message Title Robin Bowes created an issue Facter / FACT-627 Boolean facts not printed with facter -p if fact value is false Issue Type: Bug Assignee: Eric Sorenson Created: 23/Jul/14 6:26 AM Environment: RHEL 6, PE 3.1.3 Priority: Normal Reporter: Robin Bowes Boolean facts are not printed with facter -p if the fact value is false. Example (using a custom fact): [root@cxdrun01 ~]# facter -p | grep is_cde is_cde = true [root@cxdrun01 ~]# facter -p is_cde true # fiddle the is_cde fact to be false here [root@cxdrun01 ~]# facter -p | grep is_cde is_cde = false [root@cxdrun01 ~]# facter -p is_cde (no output printed here) Add Comment
Jira (FACT-627) Boolean facts not printed with facter -p if fact value is false
Title: Message Title Robin Bowes commented on an issue Re: Boolean facts not printed with facter -p if fact value is false It seems that this is caused when the plugin code returns a false value instead of a string value false. This is the code I am now using, and which works: Facter.add('is_cde') do setcode do if Facter.value(:role).match(/cde/) true else false end end end I should point out that I copied the code that didn't work correctly from pe_version.rb in stdlib so that code should probably be changed too. Add Comment Facter / FACT-627 Boolean facts not printed with facter -p if fact value is false Boolean facts are not printed with facter -p if the fact value is false. Example (using a custom fact): {noformat} [root@cxdrun01 ~]# facter -p | grep is_cde is_cde = true [root@cxdrun01 ~]# facter -p is_cde true # fiddle the is_cde fact to be false here [root@cxdrun01 ~]# facter -p | grep is_cde is_cde = false [root@cxdrun01 ~]# facter -p i... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)
Jira (FACT-627) Boolean facts not printed with facter -p if fact value is false
Title: Message Title Adrien Thebo assigned an issue to Adrien Thebo Facter / FACT-627 Boolean facts not printed with facter -p if fact value is false Change By: Adrien Thebo Assignee: AdrienThebo Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (FACT-627) Boolean facts not printed with facter -p if fact value is false
Title: Message Title Adrien Thebo updated an issue Facter / FACT-627 Boolean facts not printed with facter -p if fact value is false Change By: Adrien Thebo Affects Version/s: 1.7.6 Affects Version/s: 2.1.0 Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (FACT-627) Boolean facts not printed with facter -p if fact value is false
Title: Message Title Adrien Thebo updated an issue Facter / FACT-627 Boolean facts not printed with facter -p if fact value is false Change By: Adrien Thebo Component/s: Community Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (FACT-627) Boolean facts not printed with facter -p if fact value is false
Title: Message Title Adrien Thebo commented on an issue Re: Boolean facts not printed with facter -p if fact value is false I've added the community component so that this is tracked on the community board and subsequently sheparded through CI and FR. Add Comment Facter / FACT-627 Boolean facts not printed with facter -p if fact value is false Boolean facts are not printed with facter -p if the fact value is false. Example (using a custom fact): {noformat} [root@cxdrun01 ~]# facter -p | grep is_cde is_cde = true [root@cxdrun01 ~]# facter -p is_cde true # fiddle the is_cde fact to be false here [root@cxdrun01 ~]# facter -p | grep is_cde is_cde = false [root@cxdrun01 ~]# facter -p i... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit