Skip to content

Commit

Permalink
fixed nfs service issue/fixed calling distribution id
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvmicrosoft committed Nov 7, 2024
1 parent 9872b09 commit 93fee13
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ def run_module():

module = AnsibleModule(argument_spec=module_args, supports_check_mode=True)

distribution_id = module.params["distribution_id"]

distribution_full_id = module.params["distribution_full_id"]

result["this_sid"] = {
Expand All @@ -62,8 +64,6 @@ def run_module():

module = AnsibleModule(argument_spec=module_args, supports_check_mode=True)

distribution_full_id = module.params["distribution_full_id"]

result["this_sid"] = {
"sid": module.params["sap_sid"].upper(),
"dbsid_uid": module.params["hdbadm_uid"],
Expand Down Expand Up @@ -99,7 +99,7 @@ def run_module():
"redhat7": "nfs",
"oraclelinux8": "rpcbind",
}
result["nfs_service"] = nfs_service_mapping.get(distribution_full_id, "nfsserver")
result["nfs_service"] = nfs_service_mapping.get(distribution_id.split('.')[0], "nfs-server")

module.exit_json(**result)

Expand Down

0 comments on commit 93fee13

Please sign in to comment.