Skip to content

Commit 81c138a

Browse files
committed
flynt
1 parent 2185302 commit 81c138a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

plugins/module_utils/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def __init__(
8888
):
8989
if not (host or "").startswith(("https://", "http://")):
9090
raise ScaleComputingError(
91-
"Invalid instance host value: '{0}'. " "Value must start with 'https://' or 'http://'".format(host)
91+
f"Invalid instance host value: '{host}'. Value must start with 'https://' or 'http://'"
9292
)
9393

9494
self.host = host

plugins/module_utils/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __init__(self, data: Union[str, Exception]):
9191

9292
class SMBServerNotFound(ScaleComputingError):
9393
def __init__(self, data: Union[str, Exception]):
94-
self.message = "SMB server is either not connected or not in the same network - {0}".format(data)
94+
self.message = f"SMB server is either not connected or not in the same network - {data}"
9595
super(SMBServerNotFound, self).__init__(self.message)
9696

9797

plugins/module_utils/rest_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def get_record(
7171
records = self.list_records(endpoint=endpoint, query=query, timeout=timeout)
7272
if len(records) > 1:
7373
raise errors.ScaleComputingError(
74-
"{0} records from endpoint {1} match the {2} query.".format(len(records), endpoint, query)
74+
f"{len(records)} records from endpoint {endpoint} match the {query} query."
7575
)
7676
if must_exist and not records:
7777
raise errors.ScaleComputingError(f"No records from endpoint {endpoint} match the {query} query.")

0 commit comments

Comments
 (0)