mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-26 21:33:12 +00:00
modules a*: use f-strings (#10942)
* modules a*: use f-strings * add changelog frag * add changelog frag * rename chglof frag file
This commit is contained in:
@@ -41,7 +41,7 @@ class HwcClientException(Exception):
|
||||
self._message = message
|
||||
|
||||
def __str__(self):
|
||||
msg = f" code={self._code!s}," if self._code != 0 else ""
|
||||
msg = f" code={self._code}," if self._code != 0 else ""
|
||||
return f"[HwcClientException]{msg} message={self._message}"
|
||||
|
||||
|
||||
|
||||
@@ -151,7 +151,7 @@ class ManageIQ(object):
|
||||
if resource:
|
||||
return resource
|
||||
else:
|
||||
msg = f"{collection_name} where {params!s} does not exist in manageiq"
|
||||
msg = f"{collection_name} where {params} does not exist in manageiq"
|
||||
self.module.fail_json(msg=msg)
|
||||
|
||||
def policies(self, resource_id, resource_type, resource_name):
|
||||
|
||||
Reference in New Issue
Block a user