lib/beaker-puppet/helpers/puppet_helpers.rb in beaker-puppet-1.4.0 vs lib/beaker-puppet/helpers/puppet_helpers.rb in beaker-puppet-1.5.0
- old
+ new
@@ -826,10 +826,10 @@
# @return nil
# @raise [FailTest] if process times out
def sign_certificate_for(host = [])
hostnames = []
hosts = host.is_a?(Array) ? host : [host]
- puppet_version = on(master, puppet('--version'))
+ puppet_version = on(master, puppet('--version')).stdout.chomp
hosts.each{ |current_host|
if [master, dashboard, database].include? current_host
on current_host, puppet( 'agent -t' ), :acceptable_exit_codes => [0,1,2]
if version_is_less(puppet_version, '5.99')