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-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