Project

General

Profile

« Previous | Next » 

Revision 22a2bcb1

Added by Amos Benari almost 12 years ago

  • ID 22a2bcb1e0c15ba61b2a2fa4c0c9c6b453161b34

fixes #1649 Puppet class and environment import works only on the first smart-proxy

View differences:

lib/foreman/controller/environments.rb
def import_environments
begin
@changed = Environment.importClasses
@changed = Environment.importClasses params[:proxy]
rescue => e
if e.message =~ /puppet feature/i
error "We did not find a foreman proxy that can provide the information, ensure that you have at least one Proxy with the puppet feature turned on."

Also available in: Unified diff