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

DCNM Security Groups Associations commit after IT/UT complete #321

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fixed an issue with Log
mmudigon committed Aug 30, 2024
commit b55d2731c44af418d0aead4de6dc9f995286b351
19 changes: 15 additions & 4 deletions plugins/modules/dcnm_sgrp_association.py
Original file line number Diff line number Diff line change
@@ -1012,17 +1012,28 @@ def main():

state = module.params["state"]

dcnm_sgrp_association.log.debug(
f"######################### BEGIN STATE = {0} ##########################\n".format(state)
)

# Initialize the logger
try:
# Set the following to True if logging is required
enable_logging = False
logger = Log()

if enable_logging is True:
collection_path = (
"/Users/mmudigon/Desktop/Ansible/collections/ansible_collections/cisco/dcnm"
)
config_file = (
f"{collection_path}/plugins/module_utils/common/logging_config.json"
)
logger.config = config_file
logger.commit()
except ValueError as error:
module.fail_json(msg=str(error))

dcnm_sgrp_association.log.debug(
f"######################### BEGIN STATE = {0} ##########################\n".format(state)
)

# Initialize the Sender object
sender = Sender()
sender.ansible_module = module