From 2faddfc1fed4cd4c3b7084bb459a7abcc4962393 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Mon, 19 Nov 2018 21:20:39 +0530 Subject: [PATCH] Misc typo in msc_* modules (#48716) Signed-off-by: Abhijeet Kasurde --- lib/ansible/modules/network/aci/msc_label.py | 2 +- lib/ansible/modules/network/aci/msc_role.py | 2 +- lib/ansible/modules/network/aci/msc_site.py | 2 +- lib/ansible/modules/network/aci/msc_tenant.py | 2 +- lib/ansible/modules/network/aci/msc_user.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ansible/modules/network/aci/msc_label.py b/lib/ansible/modules/network/aci/msc_label.py index 4fde746ef6c..32c427bfe4c 100644 --- a/lib/ansible/modules/network/aci/msc_label.py +++ b/lib/ansible/modules/network/aci/msc_label.py @@ -131,7 +131,7 @@ def main(): msc.existing = msc.get_obj(path, id=label_id) existing_by_name = msc.get_obj(path, displayName=label) if existing_by_name and label_id != existing_by_name['id']: - msc.fail_json(msg="Provided label '{1}' with id '{2}' does not match existing id '{3}'.".format(label, label_id, existing_by_name['id'])) + msc.fail_json(msg="Provided label '{0}' with id '{1}' does not match existing id '{2}'.".format(label, label_id, existing_by_name['id'])) # If we found an existing object, continue with it if label_id: diff --git a/lib/ansible/modules/network/aci/msc_role.py b/lib/ansible/modules/network/aci/msc_role.py index 0878e3d380b..400137a820b 100644 --- a/lib/ansible/modules/network/aci/msc_role.py +++ b/lib/ansible/modules/network/aci/msc_role.py @@ -163,7 +163,7 @@ def main(): msc.existing = msc.get_obj(path, id=role_id) existing_by_name = msc.get_obj(path, name=role) if existing_by_name and role_id != existing_by_name['id']: - msc.fail_json(msg="Provided role '{1}' with id '{2}' does not match existing id '{3}'.".format(role, role_id, existing_by_name['id'])) + msc.fail_json(msg="Provided role '{0}' with id '{1}' does not match existing id '{2}'.".format(role, role_id, existing_by_name['id'])) # If we found an existing object, continue with it if role_id: diff --git a/lib/ansible/modules/network/aci/msc_site.py b/lib/ansible/modules/network/aci/msc_site.py index a268e542cdc..a4532825779 100644 --- a/lib/ansible/modules/network/aci/msc_site.py +++ b/lib/ansible/modules/network/aci/msc_site.py @@ -160,7 +160,7 @@ def main(): msc.existing = msc.get_obj(path, id=site_id) existing_by_name = msc.get_obj(path, name=site) if existing_by_name and site_id != existing_by_name['id']: - msc.fail_json(msg="Provided site '{1}' with id '{2}' does not match existing id '{3}'.".format(site, site_id, existing_by_name['id'])) + msc.fail_json(msg="Provided site '{0}' with id '{1}' does not match existing id '{2}'.".format(site, site_id, existing_by_name['id'])) # If we found an existing object, continue with it if site_id: diff --git a/lib/ansible/modules/network/aci/msc_tenant.py b/lib/ansible/modules/network/aci/msc_tenant.py index 5417d35844f..b4b127f40e1 100644 --- a/lib/ansible/modules/network/aci/msc_tenant.py +++ b/lib/ansible/modules/network/aci/msc_tenant.py @@ -141,7 +141,7 @@ def main(): msc.existing = msc.get_obj(path, id=tenant_id) existing_by_name = msc.get_obj(path, name=tenant) if existing_by_name and tenant_id != existing_by_name['id']: - msc.fail_json(msg="Provided tenant '{1}' with id '{2}' does not match existing id '{3}'.".format(tenant, tenant_id, existing_by_name['id'])) + msc.fail_json(msg="Provided tenant '{0}' with id '{1}' does not match existing id '{2}'.".format(tenant, tenant_id, existing_by_name['id'])) # If we found an existing object, continue with it if tenant_id: diff --git a/lib/ansible/modules/network/aci/msc_user.py b/lib/ansible/modules/network/aci/msc_user.py index b58c544075e..230afb71441 100644 --- a/lib/ansible/modules/network/aci/msc_user.py +++ b/lib/ansible/modules/network/aci/msc_user.py @@ -171,7 +171,7 @@ def main(): msc.existing = msc.get_obj(path, id=user_id) existing_by_name = msc.get_obj(path, username=user_name) if existing_by_name and user_id != existing_by_name['id']: - msc.fail_json(msg="Provided user '{1}' with id '{2}' does not match existing id '{3}'.".format(user_name, user_id, existing_by_name['id'])) + msc.fail_json(msg="Provided user '{0}' with id '{1}' does not match existing id '{2}'.".format(user_name, user_id, existing_by_name['id'])) # If we found an existing object, continue with it if user_id: