Skip to content

Commit

Permalink
DG-28970 | Fixed pipeline error
Browse files Browse the repository at this point in the history
  • Loading branch information
Swapnil Srivastava authored and Swapnil Srivastava committed Jul 26, 2024
1 parent fc6269b commit f328dbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/sfrest/backup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def execute_rest_backup(rconn, site_nid, name, components)
end

def execute_drush_backup(acsf, site_nid, name, components, user)
drush_components = components.is_a?(Array) ? components.join(",") : components
drush_components = components.is_a?(Array) ? components.join(',') : components
drush_cmd = "sf-backup #{site_nid} \"#{name}\" --components=\"#{drush_components}\" --user=#{user} --format=json"
drush_cmd_update = acsf.drush drush_cmd
result = acsf.factory_ssh.exec!(drush_cmd_update).strip
Expand All @@ -67,6 +67,7 @@ def execute_drush_backup(acsf, site_nid, name, components, user)

def parse_response(response)
raise "Unexpected response type: #{response.class}" unless response.is_a?(Hash)

[response['task_id'], response['message']]
end

Expand Down

0 comments on commit f328dbc

Please sign in to comment.