Jira (FACT-3165) facter --debug reports wrong location of a resolved fact.

2023-03-17 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-3165  
 
 
  facter --debug reports wrong location of a resolved fact.   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Epic Link: 
 PUP-11659  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.473610.1666921663000.1467.1679072160021%40Atlassian.JIRA.


Jira (FACT-3165) facter --debug reports wrong location of a resolved fact.

2023-01-17 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-3165  
 
 
  facter --debug reports wrong location of a resolved fact.   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Labels: 
 regresion regression  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.473610.1666921663000.1437.1673973240176%40Atlassian.JIRA.


Jira (FACT-3165) facter --debug reports wrong location of a resolved fact.

2023-01-09 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-3165  
 
 
  facter --debug reports wrong location of a resolved fact.   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 

  
 
 
 
 

 
 When a fact is defined in multiple files, running `facter --debug` reports the wrong location it was resolved from.Steps to reproduce:{{$ grep '' *}}{{one.rb:Facter.add("foo") do}}{{one.rb: setcode do}}{{one.rb:         "one"}}{{one.rb: end}}{{one.rb:end}}{{zero.rb:Facter.add("foo") do}}{{zero.rb:        setcode do}}{{zero.rb:                "zero"}}{{zero.rb:        end}}{{zero.rb:end}}{{$ facter foo --debug --custom-dir $PWD 2>&1 | grep -e zero -e one}}{{[2022-10-28 10:45:17.906705 ] DEBUG Facter::Util::Fact - custom fact foo got resolved from: ["/tmp/x/{color:#ff}*zero*{color}.rb", 1]}}{{[2022-10-28 10:45:17.907721 ] DEBUG Facter::FactManager - fact "foo" has resolved to: *{color:#ff8b00}one{color}*}}{{*{color:#ff8b00}{{one}}{color}*}}Facter 3 doesn't have this issue . Given : {noformat}# cat one.rb Facter.add("foo") do$stderr.puts "registering one.rb"setcode do  "one"endend# cat two.rb Facter.add("foo") do$stderr.puts "registering two.rb"setcode do  "two"endend# facter foo --debug --custom-dir $PWD 2>&1 | grep -e one.rb -e two.rb -e foo2023-01-09 19:25:42.635880 INFO  puppetlabs.facter - executed with command line: foo --debug --custom-dir /root.2023-01-09 19:25:42.687218 INFO  puppetlabs.facter - requested queries: foo.2023-01-09 19:25:42.687824 INFO  puppetlabs.facter - loading custom facts from /root/one.rb.registering one.rb2023-01-09 19:25:42.688119 INFO  puppetlabs.facter - loading custom facts from /root/two.rb.2023-01-09 19:25:42.688309 DEBUG puppetlabs.facter - fact "foo" has resolved to "one".registering two.rbregistering two.rb{noformat}  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

   

Jira (FACT-3165) facter --debug reports wrong location of a resolved fact.

2023-01-09 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-3165  
 
 
  facter --debug reports wrong location of a resolved fact.   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Labels: 
 regresion  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.473610.1666921663000.70882.1673293860065%40Atlassian.JIRA.


Jira (FACT-3165) facter --debug reports wrong location of a resolved fact.

2023-01-09 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-3165  
 
 
  facter --debug reports wrong location of a resolved fact.   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 

  
 
 
 
 

 
 When a fact is defined in multiple files, running `facter --debug` reports the wrong location it was resolved from.Steps to reproduce:   {{$ grep '' *}}{{one.rb:Facter.add("foo") do}}{{one.rb: setcode do}}{{one.rb:         "one"}}{{one.rb: end}}{{one.rb:end}}{{zero.rb:Facter.add("foo") do}}{{zero.rb:        setcode do}}{{zero.rb:                "zero"}}{{zero.rb:        end}}{{zero.rb:end}}{{$ facter foo --debug --custom-dir $PWD 2>&1 | grep -e zero -e one}}{{[2022-10-28 10:45:17.906705 ] DEBUG Facter::Util::Fact - custom fact foo got resolved from: ["/tmp/x/{color:#ff}*zero*{color}.rb", 1]}}{{[2022-10-28 10:45:17.907721 ] DEBUG Facter::FactManager - fact "foo" has resolved to: *{color:#ff8b00}one{color}*}}{{*{color:#ff8b00}{{one}}{color}*}} Facter 3 doesn't have this issue:  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)  
 
 

 
   
 

  
 

  
 

   





-- 

Jira (FACT-3165) facter --debug reports wrong location of a resolved fact.

2022-11-03 Thread Georgi Georgiev (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Georgi Georgiev commented on  FACT-3165  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: facter --debug reports wrong location of a resolved fact.   
 

  
 
 
 
 

 
 Morgan Rhodes done - https://github.com/puppetlabs/facter/pull/2534  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.473610.1666921663000.55708.1667531700081%40Atlassian.JIRA.


Jira (FACT-3165) facter --debug reports wrong location of a resolved fact.

2022-11-01 Thread Morgan Rhodes (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Morgan Rhodes commented on  FACT-3165  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: facter --debug reports wrong location of a resolved fact.   
 

  
 
 
 
 

 
 Hi Georgi Georgiev, thank you for the ticket! We aren't sure when we'll be able to get to this so if you wanted to try to fix this and open a PR that would be very appreciated.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.473610.1666921663000.54791.1667334000110%40Atlassian.JIRA.


Jira (FACT-3165) facter --debug reports wrong location of a resolved fact.

2022-11-01 Thread Morgan Rhodes (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Morgan Rhodes updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-3165  
 
 
  facter --debug reports wrong location of a resolved fact.   
 

  
 
 
 
 

 
Change By: 
 Morgan Rhodes  
 
 
Team: 
 Comply EMEA Phoenix  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.473610.1666921663000.54783.1667333700133%40Atlassian.JIRA.


Jira (FACT-3165) facter --debug reports wrong location of a resolved fact.

2022-10-27 Thread Georgi Georgiev (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Georgi Georgiev updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-3165  
 
 
  facter --debug reports wrong location of a resolved fact.   
 

  
 
 
 
 

 
Change By: 
 Georgi Georgiev  
 

  
 
 
 
 

 
 When a fact is defined in multiple files, running `facter --debug` reports the wrong location it was resolved from.Steps to reproduce: {{ {{$  grep '' *}} }} {{ {}{{ one.rb:Facter.add("foo")  { setcode{  do }} }  {{ { one.rb: setcode do } } { {one.rb:          "one" } { } }}  {{ { one.rb: end }} }}  { {one.rb:end }} } {{ {}{{ zero.rb:Facter.add("foo")  { setcode{  do }} }  {{ { zero.rb:        setcode do } } { {zero.rb:                  "zero" } { } }}  {{ { zero.rb:        end }} }}  { {zero.rb:end }} }     {} $ facter foo --debug --custom-dir $PWD 2>&1 | grep -e zero -e one {  }  {} [2022-10-28 10:45:17.906705 ] DEBUG Facter::Util::Fact - custom fact foo got resolved from: ["/tmp/x/{color:#ff}*zero*{color}.rb", 1] {  }  {} [2022-10-28 10:45:17.907721 ] DEBUG Facter::FactManager - fact "foo" has resolved to: *{color:#ff8b00}one{color}* {  } {{*{color:#ff8b00}{{one}}{color}*}}  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)  
 
 

 
   
 

  
   

Jira (FACT-3165) facter --debug reports wrong location of a resolved fact.

2022-10-27 Thread Georgi Georgiev (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Georgi Georgiev updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-3165  
 
 
  facter --debug reports wrong location of a resolved fact.   
 

  
 
 
 
 

 
Change By: 
 Georgi Georgiev  
 

  
 
 
 
 

 
 When a fact is defined in multiple files, running `facter --debug` reports the wrong location it was resolved from.Steps to reproduce: {{grep '' *}}{{one.rb:Facter.add("foo") do}}{{one.rb: setcode do}}{{one.rb:         "one"}}{{one.rb: end}}{{one.rb:end}}{{zero.rb:Facter.add("foo") do}}{{zero.rb:        setcode do}}{{zero.rb:                "zero"}}{{zero.rb:        end}}{{zero.rb:end}}{{ {{{} $ facter foo --debug --custom-dir $PWD 2>&1 | grep -e zero -e one { }} }}} {{ {{{} [2022-10-28 10:45:17.906705 ] DEBUG Facter::Util::Fact - custom fact foo got resolved from: ["/tmp/x/{color:#ff}*zero*{color}.rb", 1] { }} }}} {{ {{{} [2022-10-28 10:45:17.907721 ] DEBUG Facter::FactManager - fact "foo" has resolved to: *{color:#ff8b00}one{color}* { }} }}} {{*{color:#ff8b00}{{one}}{color}*}}  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)  
 
 

 
   
 

  
 

  
 

   
  

Jira (FACT-3165) facter --debug reports wrong location of a resolved fact.

2022-10-27 Thread Georgi Georgiev (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Georgi Georgiev updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-3165  
 
 
  facter --debug reports wrong location of a resolved fact.   
 

  
 
 
 
 

 
Change By: 
 Georgi Georgiev  
 

  
 
 
 
 

 
 When a fact is defined in multiple files, running `facter --debug` reports the wrong location it was resolved from.Steps to reproduce: {{ $ grep '' *}}{{one.rb:Facter.add("foo") do}}{{one.rb: setcode do}}{{one.rb:         "one"}}{{one.rb: end}}{{one.rb:end}}{{zero.rb:Facter.add("foo") do}}{{zero.rb:        setcode do}}{{zero.rb:                "zero"}}{{zero.rb:        end}}{{zero.rb:end}}{{$ facter foo --debug --custom-dir $PWD 2>&1 | grep -e zero -e one}}{{[2022-10-28 10:45:17.906705 ] DEBUG Facter::Util::Fact - custom fact foo got resolved from: ["/tmp/x/{color:#ff}*zero*{color}.rb", 1]}}{{[2022-10-28 10:45:17.907721 ] DEBUG Facter::FactManager - fact "foo" has resolved to: *{color:#ff8b00}one{color}*}}{{*{color:#ff8b00}{{one}}{color}*}}  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message 

Jira (FACT-3165) facter --debug reports wrong location of a resolved fact.

2022-10-27 Thread Georgi Georgiev (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Georgi Georgiev updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-3165  
 
 
  facter --debug reports wrong location of a resolved fact.   
 

  
 
 
 
 

 
Change By: 
 Georgi Georgiev  
 

  
 
 
 
 

 
 When a fact is defined in multiple files, running `facter --debug` reports the wrong location it was resolved from.Steps to reproduce: {{ {{ $ grep '' *}} }} {{ {}{{ one.rb:Facter.add("foo")  \ { setcode { }}}{{{}{  "one" } {  }}} {{{{}}} {{ {}{{ zero.rb:Facter.add("foo")  \ { setcode { }}}{{{}{  "zero" } {  }}} {{{{}}}    {{ {{ $ facter foo --debug --custom-dir $PWD 2>&1 | grep -e zero -e one}} }} {{ {{ [2022-10-28 10:45:17.906705 ] DEBUG Facter::Util::Fact - custom fact foo got resolved from: ["/tmp/x/{color:# FF ff }*zero*{color}.rb", 1]}} }} {{ {{ [2022-10-28 10:45:17.907721 ] DEBUG Facter::FactManager - fact "foo" has resolved to: *{color:#ff8b00}one{color}*}} }}  {{ *{color:#ff8b00}{{one}}{color}* }}  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are 

Jira (FACT-3165) facter --debug reports wrong location of a resolved fact.

2022-10-27 Thread Georgi Georgiev (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Georgi Georgiev created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-3165  
 
 
  facter --debug reports wrong location of a resolved fact.   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Affects Versions: 
 FACT 4.2.11  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 Facter 4  
 
 
Created: 
 2022/10/27 6:47 PM  
 
 
Environment: 
 $ facter --version 4.2.11 $ rpm -qf $(which facter) -i Name        : puppet-agent Version     : 7.18.0 Release     : 1.el8 Architecture: x86_64 Install Date: Mon 03 Oct 2022 10:40:53 AM JST Group       : System Environment/Base Size        : 112577683 License     : See components Signature   : RSA/SHA256, Sat 23 Jul 2022 01:48:23 AM JST, Key ID 4528b6cd9e61ef26 Source RPM  : puppet-agent-7.18.0-1.el8.src.rpm Build Date  : Sat 23 Jul 2022 01:47:31 AM JST Build Host  : unheated-luck.delivery.puppetlabs.net Relocations : (not relocatable) Vendor      : Puppet Labs URL         : https://www.puppetlabs.com Summary     : The Puppet Agent package contains all of the elements needed to run puppet, including ruby, facter, and hiera. Description : The Puppet Agent package contains all of the elements needed to run puppet, including ruby, facter, and hiera.Contains the following components: cleanup facter 4.2.11 hiera 3.10.0 module-puppetlabs-augeas_core 1.1.2 module-puppetlabs-cron_core 1.0.5 module-puppetlabs-host_core 1.0.3 module-puppetlabs-mount_core 1.0.4 module-puppetlabs-scheduled_task 1.0.0 module-puppetlabs-selinux_core 1.1.0 module-puppetlabs-sshkeys_core 2.2.0 module-puppetlabs-yumrepo_core 1.0.7 module-puppetlabs-zfs_core 1.2.0 module-puppetlabs-zone_core 1.0.3 pl-ruby-patch puppet 7.18.0 puppet-resource_api 1.8.14 puppet-runtime 202207190 pxp-agent 202207200 shellpath 2015-09-18 wrapper-script  
 
 
Priority: 
  Low  
 
 
Reporter: 
 Georgi Georgiev