Skip to content

Commit

Permalink
Merge pull request #9 from agrare/rename_configuration_script_payload…
Browse files Browse the repository at this point in the history
…_to_template

Rename ConfigurationScriptPayload as Template
  • Loading branch information
jrafanie authored Mar 28, 2024
2 parents 8a797bc + 1204b1c commit dcacd45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def sync
next if filename.start_with?(".") || !filename.end_with?(".tf")

payload = worktree.read_file(filename)
found = current.delete(filename) || self.class.module_parent::ConfigurationScriptPayload.new(:configuration_script_source_id => id)
found = current.delete(filename) || self.class.module_parent::Template.new(:configuration_script_source_id => id)

found.update!(:name => filename, :manager_id => manager_id, :payload => payload, :payload_type => "json")
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ManageIQ::Providers::EmbeddedTerraform::AutomationManager::ConfigurationScriptPayload < ManageIQ::Providers::EmbeddedAutomationManager::ConfigurationScriptPayload
class ManageIQ::Providers::EmbeddedTerraform::AutomationManager::Template < ManageIQ::Providers::EmbeddedAutomationManager::ConfigurationScriptPayload
has_many :jobs, :class_name => 'OrchestrationStack', :foreign_key => :configuration_script_base_id

def run(vars = {}, _userid = nil)
Expand Down

0 comments on commit dcacd45

Please sign in to comment.