mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
[PR #10727/6f40eff6 backport][stable-11] simplify string formatting in some modules (#10773)
simplify string formatting in some modules (#10727)
* simplify string formatting in some modules
* add changelog frag
(cherry picked from commit 6f40eff632)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
@@ -214,7 +214,7 @@ class ManageIQTenant(object):
|
||||
self.module.fail_json(msg="Parent tenant '%s' not found in manageiq" % parent)
|
||||
|
||||
if len(parent_tenant_res) > 1:
|
||||
self.module.fail_json(msg="Multiple parent tenants not found in manageiq with name '%s" % parent)
|
||||
self.module.fail_json(msg="Multiple parent tenants not found in manageiq with name '%s'" % parent)
|
||||
|
||||
parent_tenant = parent_tenant_res[0]
|
||||
parent_id = int(parent_tenant['id'])
|
||||
|
||||
Reference in New Issue
Block a user