Hi, this is the 8th thread you started about one and the same problem in a very short period of time. To appear yet more trigger happy, you have obviously managed to solve some of your issues yourself, yet did not hesitate to confront everyone with the next roadblock along the way.
Could you try and exercise a more strict mailing list discipline? Thanks, Felix On 11/25/2014 08:47 PM, Spriya wrote: > Hi > > I have puppet facts and those facts are displaying individually. But > when i am concatenating the facts, the output is not displaying > > Here is my code: > l*og = Facter::Util::FileRead.read(logfile)* > *unless log.nil?* > *log.each_line do |line|* > * val = line.split(' ')* > * java_path = val.grep(%r!/java!).join(',')* > * java_version = line.match(/java version "([^"]+)"/)* > * java_count += 1 unless java_path.empty?* > *Facter.add("java_u01_weblogic_foundversion#{java_count}u01_#{java_count}_path") > do* > * setcode do* > * java_version[1] + java_path* > *end* > *end* > *end* > > My facts if use only java_version[1] without specifying java_path > > java_other_foundversion_count 14 > java_u01_weblogic_foundversion1u01_1_path 1.7.0_65 > java_u01_weblogic_foundversion2u01_2_path 1.6.0_32 > > Now if i use java_path to print output > > java_other_foundversion_count 14 > java_u01_weblogic_foundversion1u01_1_path > /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65.x86_64/jre/bin/java > java_u01_weblogic_foundversion2u01_2_path > /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java > java_u01_weblogic_foundversion3u01_3_path > /opt/oracle/agent12c/core/12.1.0.4.0/jdk/bin/java > > > > *But when i concatenate these facts java_version[1] + java_path it is > not resulting anyoutput* > -- > You received this message because you are subscribed to the Google > Groups "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to puppet-users+unsubscr...@googlegroups.com > <mailto:puppet-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/bd8fc1e7-77f4-4b53-b84b-010e4bf89dcf%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/bd8fc1e7-77f4-4b53-b84b-010e4bf89dcf%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5474FBBE.2030006%40Alumni.TU-Berlin.de. For more options, visit https://groups.google.com/d/optout.