Project

General

Profile

« Previous | Next » 

Revision f516c137

Added by Dmitri Dolguikh about 10 years ago

fixes #5398: replaces calls to deprecated SmartProxy.*_proxies scope with SmartProxy.with_features scope

View differences:

lib/tasks/puppet.rake
task :puppet_classes, [:batch, :envname] => :environment do | t, args |
args.batch = args.batch == "true"
proxies = SmartProxy.puppet_proxies
proxies = SmartProxy.with_features("Puppet")
if proxies.empty?
puts "ERROR: We did not find at least one configured Smart Proxy with the Puppet feature"
exit 1
......
puts " ================================================================ "
puts "Import starts: #{Time.now.strftime("%Y-%m-%d %H:%M:%S %Z")}"
proxies = SmartProxy.puppet_proxies
proxies = SmartProxy.with_features("Puppet")
if proxies.empty?
puts "ERROR: We did not find at least one configured Smart Proxy with the Puppet feature"
exit 1

Also available in: Unified diff