Skip to content

Commit

Permalink
Remove unused dcnm_send import
Browse files Browse the repository at this point in the history
  • Loading branch information
allenrobel committed Jan 26, 2024
1 parent 0eccb59 commit 8fe798e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 0 additions & 2 deletions plugins/module_utils/image_mgmt/image_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
ImageInstallOptions
from ansible_collections.cisco.dcnm.plugins.module_utils.image_mgmt.switch_issu_details import \
SwitchIssuDetailsByIpAddress
from ansible_collections.cisco.dcnm.plugins.module_utils.network.dcnm.dcnm import \
dcnm_send


class ImageUpgrade(ImageUpgradeCommon):
Expand Down
10 changes: 6 additions & 4 deletions plugins/modules/dcnm_image_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,6 @@
SwitchDetails
from ansible_collections.cisco.dcnm.plugins.module_utils.image_mgmt.switch_issu_details import \
SwitchIssuDetailsByIpAddress
from ansible_collections.cisco.dcnm.plugins.module_utils.network.dcnm.dcnm import \
dcnm_send


class ImageUpgradeTask(ImageUpgradeCommon):
Expand Down Expand Up @@ -1017,9 +1015,13 @@ def _attach_or_detach_image_policy(self, action=None) -> None:
instance.serial_numbers = value
instance.commit()
if action == "attach":
self.task_result.response_attach_policy = copy.deepcopy(instance.response_current)
self.task_result.response_attach_policy = copy.deepcopy(
instance.response_current
)
if action == "detach":
self.task_result.response_detach_policy = copy.deepcopy(instance.response_current)
self.task_result.response_detach_policy = copy.deepcopy(
instance.response_current
)

for diff in instance.diff:
msg = (
Expand Down

0 comments on commit 8fe798e

Please sign in to comment.