Skip to content

Commit

Permalink
Docs: refer to client, not client2, in sample (#7441)
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasnaphas committed Mar 8, 2024
1 parent 4fc45e7 commit 06bfd7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/multi_account.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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"]



Expand Down

0 comments on commit 06bfd7f

Please sign in to comment.