Skip to content

Commit

Permalink
Merge pull request #357 from netscaler/issue-351-link-certificate
Browse files Browse the repository at this point in the history
support for linking sslcertkey added
  • Loading branch information
sumanth-lingappa authored Jan 30, 2024
2 parents 03d2f55 + 4c0765a commit 82f2c0f
Show file tree
Hide file tree
Showing 11 changed files with 5,432 additions and 563 deletions.
5 changes: 5 additions & 0 deletions plugins/module_utils/module_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,8 @@ def main(self):
or "update" in self.supported_operations
):
self.create_or_update()
if "linkcertkeyname" in self.resource_module_params:
self.act_on_resource(action="link")
if self.module.params["state"] in {"enabled", "disabled"}:
if self.module.check_mode:
log(
Expand Down Expand Up @@ -931,6 +933,9 @@ def main(self):
and NITRO_RESOURCE_MAP[self.resource_name]["bindings"]
):
self.sync_all_bindings()
# FIXME: commenting the below code as we cannot achieve idempotency for `linkcertkeyname` attribute
# if "linkcertkeyname" in self.resource_module_params:
# self.act_on_resource(action="unlink")
self.delete()
else:
# `primary_key` will not be present for
Expand Down
Loading

0 comments on commit 82f2c0f

Please sign in to comment.