Re: [Puppet Users] having an issue with keyword end

2014-07-01 Thread Realmailer
Could it be due to an extra end? On 02-Jul-2014, at 1:07, Supriya Uppalapati wrote: > Hi, > > I changed the code now, but still giving me the error. > > Help me > > Warning: Could not load fact file > /var/opt/lib/pe-puppet/lib/facter/application_type.rb: > application_type.rb:50: synt

Re: [Puppet Users] having an issue with keyword end

2014-07-01 Thread Realmailer
On 02-Jul-2014, at 1:07, Supriya Uppalapati wrote: > elsif (application_installed.slice(4,1) =~ /a|m|q/) > # Get the 6th & 7th char using slice method to identify between > Application/Database > if(application_installed.slice(5,2)=="db") > puts "Database" Doesn't this b

Re: [Puppet Users] having an issue with keyword end

2014-07-01 Thread Supriya Uppalapati
Hi, I changed the code now, but still giving me the error. Help me Warning: Could not load fact file /var/opt/lib/pe-puppet/lib/facter/application_type.rb: application_type.rb:50: syntax error, unexpected keyword_end, expecting $end require 'rexml/document' require 'facter' Facter.add(:applica

[Puppet Users] having an issue with keyword end

2014-07-01 Thread Supriya Uppalapati
Hi, I wrote a code to identify application type. gving me issue. Anyone help me 1 require 'rexml/document' 2 require 'facter' 3 4 Facter.add(:application_type) do 5 6confine :hostname => 'hostname' 7 8 setcode do 9 application_install