Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennifer-John committed Oct 9, 2023
1 parent 3c3493e commit 6bae34c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions plugins/modules/idrac_server_config_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,14 +823,14 @@ def idrac_import_scp_share(module, idrac, job_params):


def validate_input(module, scp_components):
if len(scp_components) != 1 and "ALL" in scp_components:
if len(scp_components) != 1 and "ALL" in scp_components:
module.fail_json(msg=SCP_ALL_ERR_MSG)
if module.params["command"] in ["import", "preview"]:
if module.params.get("import_buffer") is not None:
if module.params.get("scp_file") is not None:
module.fail_json(msg=MUTUALLY_EXCLUSIVE.format("scp_file"))
if module.params.get("share_name") is not None:
module.fail_json(msg=MUTUALLY_EXCLUSIVE.format("share_name"))
if module.params["command"] in ["import", "preview"]:
if module.params.get("import_buffer") is not None:
if module.params.get("scp_file") is not None:
module.fail_json(msg=MUTUALLY_EXCLUSIVE.format("scp_file"))
if module.params.get("share_name") is not None:
module.fail_json(msg=MUTUALLY_EXCLUSIVE.format("share_name"))


class ImportCommand():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def idrac_scp_redfish_mock(self, mocker, idrac_server_configure_profile_mock):

@pytest.mark.parametrize("params", [
{"message": SUCCESS_MSG.format("export"),
"mparams": {"share_name": "\\192.168.0.1\\share", "job_wait": True,
"mparams": {"share_name": "\\192.168.0.1\\share", "job_wait": True,
"scp_components": "IDRAC", "scp_file": "scp_file.xml",
"proxy_port": 80, "export_format": "XML"}},
{"message": SUCCESS_MSG.format("export"),
Expand Down

0 comments on commit 6bae34c

Please sign in to comment.