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 f328dbc commit 64daedd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/sfrest/backup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,15 @@ def create_backup(site_id, datum = nil)
@conn.post(current_path, datum.to_json)
end

def execute_backup(api, rconn, acsf, site_nid, name, components, user)
def execute_backup(options = {})
api = options[:api]
rconn = options[:rconn]
acsf = options[:acsf]
site_nid = options[:site_nid]
name = options[:name]
components = options[:components]
user = options[:user]

case api
when 'rest'
execute_rest_backup(rconn, site_nid, name, components)
Expand Down

0 comments on commit 64daedd

Please sign in to comment.