Skip to content

Commit

Permalink
Fixing pylint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivani-gslab committed Jun 19, 2023
1 parent 9c3e17a commit efaf30a
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1907,7 +1907,7 @@ def detach_configlets(self, user_inventory: DeviceInventory):
result_data.taskIds = resp["data"][Api.task.TASK_IDS]
for configlet in configlets_to_remove:
result_data.add_entry(
"{} removes {}".format(
"{0} removes {1}".format(
device.fqdn, configlet
)
)
Expand Down Expand Up @@ -2052,12 +2052,10 @@ def deploy_device(self, user_inventory: DeviceInventory):
)
except CvpApiError as error:
self.__ansible.fail_json(
msg="Error to deploy device {} to container {}".format(
device.fqdn, device.container
)
msg=f"Error to deploy device {device.fqdn} to container {device.container}"
)
MODULE_LOGGER.critical(
"Error deploying device {} : {}".format(
"Error deploying device {0} : {1}".format(
device.fqdn, error
)
)
Expand Down

0 comments on commit efaf30a

Please sign in to comment.