diff --git a/plugins/modules/ntnx_authorization_policies_v2.py b/plugins/modules/ntnx_authorization_policies_v2.py index c6167fb9..719ce6b0 100644 --- a/plugins/modules/ntnx_authorization_policies_v2.py +++ b/plugins/modules/ntnx_authorization_policies_v2.py @@ -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()) diff --git a/plugins/modules/ntnx_recovery_points_v2.py b/plugins/modules/ntnx_recovery_points_v2.py index 8fa0f132..4f30c436 100644 --- a/plugins/modules/ntnx_recovery_points_v2.py +++ b/plugins/modules/ntnx_recovery_points_v2.py @@ -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( @@ -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 diff --git a/plugins/modules/ntnx_templates_deploy_v2.py b/plugins/modules/ntnx_templates_deploy_v2.py index 222d00ec..a0285562 100644 --- a/plugins/modules/ntnx_templates_deploy_v2.py +++ b/plugins/modules/ntnx_templates_deploy_v2.py @@ -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) diff --git a/plugins/modules/ntnx_vms_cd_rom_iso_v2.py b/plugins/modules/ntnx_vms_cd_rom_iso_v2.py index 65f754bb..f054d898 100644 --- a/plugins/modules/ntnx_vms_cd_rom_iso_v2.py +++ b/plugins/modules/ntnx_vms_cd_rom_iso_v2.py @@ -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