Issue #11609 has been updated by Ken Barber.
Hi Hongbo ... hongbo hu wrote: > lsdev -Cc processor and lsattr -El proc0 -a type has nothing to do with bug > I use ruby-debug to debug the code in faster/util/processor.rb > if proctype =~ /^type\s+(\S+)\s+/ > processor_list[processor_num] = $1 > end > > the array print right with no number show PowerPC_POWER6 > so I think the problem is exist in parse or output. > I reuse the same code to product the hp processor info . it has the same > problem. So I was looking for the command output so I can reproduce it on my side. I don't have an AIX box handy myself so I'm working blind trying to debug this. You might be right about the processing output, as I mentioned: > This looks like the effects of a munge in Ruby. But I'd like to write a proper rspec test with the output of those commands which will let me emulate the AIX behaviour. The code here: <https://github.com/puppetlabs/facter/blob/master/lib/facter/util/processor.rb#L67> ... is where I obtained those commands which is used by the processor fact for AIX. Regardless of where the problem is, to avoid regression we'd want the output sample output to write a suitable rspec test to ensure it stays fixed. I think I briefly mentioned this concept in #11612. ---------------------------------------- Bug #11609: aix facter show additional number ahead the cpu model https://projects.puppetlabs.com/issues/11609 Author: hongbo hu Status: Investigating Priority: Normal Assignee: Category: library Target version: Keywords: aix facter Branch: Affected Facter version: 1.6.4 processor0 => 0PowerPC_POWER6 -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
