mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 01:55:51 +00:00
modules [lm]*: use f-strings (#10971)
* modules [lm]*: use f-strings * add changelog frag
This commit is contained in:
parent
4a6a449fbd
commit
b527e80307
47 changed files with 453 additions and 454 deletions
|
|
@ -190,7 +190,7 @@ def create_linode(module, client, **kwargs):
|
|||
try:
|
||||
response = client.linode.instance_create(**kwargs)
|
||||
except Exception as exception:
|
||||
module.fail_json(msg='Unable to query the Linode API. Saw: %s' % exception)
|
||||
module.fail_json(msg=f'Unable to query the Linode API. Saw: {exception}')
|
||||
|
||||
try:
|
||||
if isinstance(response, tuple):
|
||||
|
|
@ -215,7 +215,7 @@ def maybe_instance_from_label(module, client):
|
|||
except IndexError:
|
||||
return None
|
||||
except Exception as exception:
|
||||
module.fail_json(msg='Unable to query the Linode API. Saw: %s' % exception)
|
||||
module.fail_json(msg=f'Unable to query the Linode API. Saw: {exception}')
|
||||
|
||||
|
||||
def initialise_module():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue