Skip to content

Commit

Permalink
Merge pull request #5117 from komidore64/bz1076568
Browse files Browse the repository at this point in the history
fixes #9798 - don't plan CVPE deletion if this is the default version, BZ1076568
  • Loading branch information
komidore64 committed Mar 20, 2015
2 parents 89cf3ff + a312e17 commit 10a90ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/actions/katello/content_view_version/destroy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def plan(version, options = {})
repo_options[:planned_destroy] = true
plan_action(Repository::Destroy, repo, repo_options)
end
plan_action(ContentViewPuppetEnvironment::Destroy, version.archive_puppet_environment)
plan_action(ContentViewPuppetEnvironment::Destroy, version.archive_puppet_environment) unless version.default?
end
end

Expand Down

0 comments on commit 10a90ec

Please sign in to comment.