Skip to content

Commit

Permalink
Removed duplicate snippet tags for Delete cluster. (#7860)
Browse files Browse the repository at this point in the history
  • Loading branch information
sangramql authored and tseaver committed May 7, 2019
1 parent a529af5 commit 247244a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bigtable/docs/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,14 +335,11 @@ def test_bigtable_list_tables():


def test_bigtable_delete_cluster():
# [START bigtable_delete_cluster]
from google.cloud.bigtable import Client

client = Client(admin=True)
instance = client.instance(INSTANCE_ID)
cluster_id = "clus-my-" + unique_resource_id("-")
# [END bigtable_delete_cluster]

cluster = instance.cluster(
cluster_id,
location_id=ALT_LOCATION_ID,
Expand All @@ -354,7 +351,12 @@ def test_bigtable_delete_cluster():
operation.result(timeout=1000)

# [START bigtable_delete_cluster]
from google.cloud.bigtable import Client

client = Client(admin=True)
instance = client.instance(INSTANCE_ID)
cluster_to_delete = instance.cluster(cluster_id)

cluster_to_delete.delete()
# [END bigtable_delete_cluster]
assert not cluster_to_delete.exists()
Expand Down

0 comments on commit 247244a

Please sign in to comment.