Skip to content
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.

Commit

Permalink
Merge pull request #11 from iNecas/fix-dry-run
Browse files Browse the repository at this point in the history
Fix puppet import dryrun
  • Loading branch information
iNecas committed Nov 7, 2013
2 parents 4edf3da + b571eac commit 3d554ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/katello_foreman_engine/bindings.rb
Expand Up @@ -203,8 +203,8 @@ def ptable_find(name)

def import_puppet_class(smart_proxy_id, environment_id, dryrun = false)
params = { 'environment_id' => environment_id, 'id' => smart_proxy_id }
params.merge 'dryrun' => true if dryrun
environment.import_puppetclasses params
params.merge!('dryrun' => true) if dryrun
environment.import_puppetclasses(params)
end

private
Expand Down

0 comments on commit 3d554ca

Please sign in to comment.