Misc typo in msc_* modules (#48716)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/48882/head
Abhijeet Kasurde 6 years ago committed by Dag Wieers
parent 943edb3319
commit 2faddfc1fe

@ -131,7 +131,7 @@ def main():
msc.existing = msc.get_obj(path, id=label_id) msc.existing = msc.get_obj(path, id=label_id)
existing_by_name = msc.get_obj(path, displayName=label) existing_by_name = msc.get_obj(path, displayName=label)
if existing_by_name and label_id != existing_by_name['id']: 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 we found an existing object, continue with it
if label_id: if label_id:

@ -163,7 +163,7 @@ def main():
msc.existing = msc.get_obj(path, id=role_id) msc.existing = msc.get_obj(path, id=role_id)
existing_by_name = msc.get_obj(path, name=role) existing_by_name = msc.get_obj(path, name=role)
if existing_by_name and role_id != existing_by_name['id']: 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 we found an existing object, continue with it
if role_id: if role_id:

@ -160,7 +160,7 @@ def main():
msc.existing = msc.get_obj(path, id=site_id) msc.existing = msc.get_obj(path, id=site_id)
existing_by_name = msc.get_obj(path, name=site) existing_by_name = msc.get_obj(path, name=site)
if existing_by_name and site_id != existing_by_name['id']: 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 we found an existing object, continue with it
if site_id: if site_id:

@ -141,7 +141,7 @@ def main():
msc.existing = msc.get_obj(path, id=tenant_id) msc.existing = msc.get_obj(path, id=tenant_id)
existing_by_name = msc.get_obj(path, name=tenant) existing_by_name = msc.get_obj(path, name=tenant)
if existing_by_name and tenant_id != existing_by_name['id']: 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 we found an existing object, continue with it
if tenant_id: if tenant_id:

@ -171,7 +171,7 @@ def main():
msc.existing = msc.get_obj(path, id=user_id) msc.existing = msc.get_obj(path, id=user_id)
existing_by_name = msc.get_obj(path, username=user_name) existing_by_name = msc.get_obj(path, username=user_name)
if existing_by_name and user_id != existing_by_name['id']: 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 we found an existing object, continue with it
if user_id: if user_id:

Loading…
Cancel
Save