mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-04 15:34:01 -07:00
simplify string formatting in some modules (#10727)
* simplify string formatting in some modules * add changelog frag
This commit is contained in:
parent
3cc4f28fd7
commit
6f40eff632
10 changed files with 23 additions and 13 deletions
|
@ -210,7 +210,7 @@ def main():
|
|||
rc, stdout, stderr = db_import(conn, cursor, module, db, target)
|
||||
|
||||
if rc != 0:
|
||||
module.fail_json(msg="%s" % stderr)
|
||||
module.fail_json(msg=stderr)
|
||||
else:
|
||||
module.exit_json(changed=True, db=db, msg=stdout)
|
||||
else:
|
||||
|
@ -229,7 +229,7 @@ def main():
|
|||
rc, stdout, stderr = db_import(conn, cursor, module, db, target)
|
||||
|
||||
if rc != 0:
|
||||
module.fail_json(msg="%s" % stderr)
|
||||
module.fail_json(msg=stderr)
|
||||
else:
|
||||
module.exit_json(changed=True, db=db, msg=stdout)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue