Skip to content

Commit

Permalink
Merge pull request #18019 from d-m-u/removing_hacky_virtual_attrs_todo
Browse files Browse the repository at this point in the history
Remove todo with virtual attr inclusion in attr list

(cherry picked from commit dc7975f)
  • Loading branch information
gmcculloug authored and simaishi committed Sep 26, 2018
1 parent 6ce2c45 commit 1b5cf54
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/models/service_retire_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ def create_retire_subtasks(parent_service, parent_task)
# (https://github.com/ManageIQ/manageiq/blob/3921e87915b5a69937b9d4a70bb24ab71b97c165/app/models/service_template/filter.rb#L5)
# which should be extended to retirement as part of later work
# svc_rsc.resource_type != "ServiceTemplate" || self.class.include_service_template?(self, srr.id, parent_service)

# TODO: use changes here: https://github.com/ManageIQ/manageiq/pull/17996 to not have to filter by col_names
# 17996 removes virtual attributes from @attrs list
nh = attributes.slice(*self.class.column_names).except!("id", "created_on", "updated_on", "type", "state", "status", "message")
nh = attributes.except("id", "created_on", "updated_on", "type", "state", "status", "message")
nh['options'] = options.except(:child_tasks)
# Initial Options[:dialog] to an empty hash so we do not pass down dialog values to child services tasks
nh['options'][:dialog] = {}
Expand Down

0 comments on commit 1b5cf54

Please sign in to comment.