From 660d74bba6738664af1ebce3a09c614b7aa501e4 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Wed, 8 May 2024 11:52:15 -0400 Subject: [PATCH] mgr/smb: fix some incorrect f-strings when raising validation error Signed-off-by: John Mulligan --- src/pybind/mgr/smb/validation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/smb/validation.py b/src/pybind/mgr/smb/validation.py index d0890d2fc09..f9607cddcdf 100644 --- a/src/pybind/mgr/smb/validation.py +++ b/src/pybind/mgr/smb/validation.py @@ -26,7 +26,7 @@ def valid_id(value: str) -> bool: def check_id(value: str) -> None: """Raise ValueError if value is not a valid ID.""" if not valid_id(value): - raise ValueError(f"{value:!r} is not a valid ID") + raise ValueError(f"{value!r} is not a valid ID") def valid_share_name(value: str) -> bool: @@ -37,7 +37,7 @@ def valid_share_name(value: str) -> bool: def check_share_name(value: str) -> None: """Raise ValueError if value is not a valid share name.""" if not valid_share_name(value): - raise ValueError(f"{value:!r} is not a valid share name") + raise ValueError(f"{value!r} is not a valid share name") # alias for normpath so other smb libs can just import validation module -- 2.39.5