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_count14java_u01_weblogic_foundversion1u01_1_path
1.7.0_65java_u01_weblogic_foundversion2u01_2_path1.6.0_32
Now if i use java_path  to print output

java_other_foundversion_count14java_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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/bd8fc1e7-77f4-4b53-b84b-010e4bf89dcf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to