Skip to content

Commit

Permalink
Black fix
Browse files Browse the repository at this point in the history
  • Loading branch information
george-ghawali committed Dec 22, 2024
1 parent 3b048a2 commit 8969668
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions plugins/modules/ntnx_authorization_policies_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,9 @@ def delete_authorization_policy(module, result):

result["changed"] = True
if resp is None:
result["msg"] = (
"Authorization policy with ext_id: {} deleted successfully".format(ext_id)
)
result[
"msg"
] = "Authorization policy with ext_id: {} deleted successfully".format(ext_id)
else:
result["response"] = strip_internal_attributes(resp.to_dict())

Expand Down
12 changes: 6 additions & 6 deletions plugins/modules/ntnx_recovery_points_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,9 @@ def update_expiry_date_recovery_point(module, result):
new_expiration_time = module.params.get("expiration_time")

if new_expiration_time is None:
result["error"] = (
"Expiration time is required for updating recovery point and other fields can't be updated."
)
result[
"error"
] = "Expiration time is required for updating recovery point and other fields can't be updated."
module.fail_json(msg="Expiration time is required", **result)

if int(old_expiration_time.timestamp()) == int(
Expand All @@ -415,9 +415,9 @@ def update_expiry_date_recovery_point(module, result):
elif not check_recovery_point_idempotency_without_expiration(
old_spec.to_dict(), update_spec.to_dict()
):
result["warning"] = (
"Only Expiration time Updation is allowed. Can't update other fields."
)
result[
"warning"
] = "Only Expiration time Updation is allowed. Can't update other fields."

expirationTimeSpec = data_protection_sdk.ExpirationTimeSpec()
expirationTimeSpec.expiration_time = new_expiration_time
Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/ntnx_templates_deploy_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,9 @@ def deploy_template(module, result):
if module.check_mode:
result["response"] = strip_internal_attributes(spec.to_dict())
version_ext_id = module.params.get("version_id")
result["msg"] = (
f"Template ({ext_id}) with given version ({version_ext_id}) will be deployed."
)
result[
"msg"
] = f"Template ({ext_id}) with given version ({version_ext_id}) will be deployed."
return

etag = get_etag(data=current_spec)
Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/ntnx_vms_cd_rom_iso_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,9 @@ def eject_iso(module, vms, result):
result["ext_id"] = ext_id

if module.check_mode:
result["response"] = (
"ISO will be ejected from CD ROM with external ID: {0}".format(ext_id)
)
result[
"response"
] = "ISO will be ejected from CD ROM with external ID: {0}".format(ext_id)

return

Expand Down

0 comments on commit 8969668

Please sign in to comment.