From 51b1899dea0df650401562ba6a4e27c8153cac83 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Fri, 31 Aug 2018 14:39:52 -0700 Subject: [PATCH] Updated variable name --- pubsub/cloud-client/subscriber.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pubsub/cloud-client/subscriber.py b/pubsub/cloud-client/subscriber.py index 83e5700dd950..38f1e527f542 100644 --- a/pubsub/cloud-client/subscriber.py +++ b/pubsub/cloud-client/subscriber.py @@ -30,10 +30,10 @@ def list_subscriptions_in_topic(project, topic_name): """Lists all subscriptions for a given topic.""" # [START pubsub_list_topic_subscriptions] - subscriber = pubsub_v1.PublisherClient() - topic_path = subscriber.topic_path(project, topic_name) + publisher = pubsub_v1.PublisherClient() + topic_path = publisher.topic_path(project, topic_name) - for subscription in subscriber.list_topic_subscriptions(topic_path): + for subscription in publisher.list_topic_subscriptions(topic_path): print(subscription) # [END pubsub_list_topic_subscriptions]