mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
modules bc*: use f-strings (#10945)
* modules bc*: use f-strings * no quotes or backticks inside f-strs * add changelog frag * rename chglof frag file * rename chglof frag file * copr: re-applied change maintain original logic
This commit is contained in:
@@ -133,7 +133,7 @@ def update_ssh_key_pair(module, bitbucket):
|
||||
module.fail_json(msg=error_messages['invalid_params'])
|
||||
|
||||
if info['status'] != 200:
|
||||
module.fail_json(msg='Failed to create or update pipeline ssh key pair : {0}'.format(info))
|
||||
module.fail_json(msg=f'Failed to create or update pipeline ssh key pair : {info}')
|
||||
|
||||
|
||||
def delete_ssh_key_pair(module, bitbucket):
|
||||
@@ -149,7 +149,7 @@ def delete_ssh_key_pair(module, bitbucket):
|
||||
module.fail_json(msg=error_messages['invalid_params'])
|
||||
|
||||
if info['status'] != 204:
|
||||
module.fail_json(msg='Failed to delete pipeline ssh key pair: {0}'.format(info))
|
||||
module.fail_json(msg=f'Failed to delete pipeline ssh key pair: {info}')
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user