From 06bfd7f6db3a2a5b64c570a294f4fdc6be9d6747 Mon Sep 17 00:00:00 2001 From: Douglas Naphas Date: Fri, 8 Mar 2024 15:49:38 -0500 Subject: [PATCH] Docs: refer to client, not client2, in sample (#7441) --- docs/docs/multi_account.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/multi_account.rst b/docs/docs/multi_account.rst index 18c06a3b2..31a873b3a 100644 --- a/docs/docs/multi_account.rst +++ b/docs/docs/multi_account.rst @@ -26,11 +26,11 @@ Here is an example of what this looks like in practice: os.environ["MOTO_ACCOUNT_ID"] = "111111111111" client.create_bucket(Bucket="bucket-in-account-2") - assert [b["Name"] for b in client2.list_buckets()["Buckets"]] == ["bucket-in-account-2"] + assert [b["Name"] for b in client.list_buckets()["Buckets"]] == ["bucket-in-account-2"] # Now revert to the default account, by removing the environment variable del os.environ["MOTO_ACCOUNT_ID"] - assert [b["Name"] for b in client2.list_buckets()["Buckets"]] == ["bucket-default-account"] + assert [b["Name"] for b in client.list_buckets()["Buckets"]] == ["bucket-default-account"]