Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for linking sslcertkey added #357

Merged
merged 4 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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