Skip to content

Commit

Permalink
Override aliases in subclass
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiendupont committed Aug 27, 2019
1 parent 70c2941 commit e941a51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/service_template_transformation_plan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ class ServiceTemplateTransformationPlan < ServiceTemplate
unmigrated_vms = vm_resources.reject { |res| res.resource.is_tagged_with?('transformation_status/migrated', :ns => '/managed') }
unsupported_reason_add(:order, 'All VMs of the migration plan have already been successfully migrated') if unmigrated_vms.blank?
end
alias orderable? supports_order?
alias validate_order supports_order?

def request_class
ServiceTemplateTransformationPlanRequest
Expand Down

0 comments on commit e941a51

Please sign in to comment.