Skip to content

Commit

Permalink
fix: add idrac_redfish_job_tracking for http share
Browse files Browse the repository at this point in the history
  • Loading branch information
satoshi-tokyo committed Jun 13, 2023
1 parent 630513a commit 2a83a8b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/modules/idrac_server_config_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,11 @@ def run_export_import_scp_http(idrac, module):
host_powerstate=module.params["end_host_power_state"],
job_wait=module.params["job_wait"],
target=scp_target, share=share, )
job_id = scp_response.headers["Location"].split("/")[-1]
if module.params["job_wait"]:
job_failed, msg, job_dict, wait_time = idrac_redfish_job_tracking(
idrac, iDRAC_JOB_URI.format(job_id=job_id))
scp_response = job_dict
elif command == "export":
scp_file_name_format = get_scp_file_format(module)
share["file_name"] = scp_file_name_format
Expand Down

0 comments on commit 2a83a8b

Please sign in to comment.