Skip to content

Commit be79e9c

Browse files
author
Ace Nassri
authored
Fix mismatched storage region tags (#4194)
1 parent ee130dc commit be79e9c

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

appengine/standard/ndb/overview/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ def post(self):
8888
# We set the parent key on each 'Greeting' to ensure each guestbook's
8989
# greetings are in the same entity group.
9090
guestbook_name = self.request.get('guestbook_name')
91-
greeting = Greeting(parent=ndb.Key("Book",
92-
guestbook_name or "*notitle*"),
93-
content=self.request.get('content'))
94-
greeting.put()
91+
greeting = Greeting(parent=ndb.Key("Book",
92+
guestbook_name or "*notitle*"),
93+
content=self.request.get('content'))
94+
greeting.put()
9595
# [END submit]
9696
self.redirect('/?' + urllib.urlencode(
9797
{'guestbook_name': guestbook_name}))

endpoints/getting-started/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def auth_info():
5959
user_info = {'id': 'anonymous'}
6060

6161
return jsonify(user_info)
62-
# [START endpoints_auth_info_backend]
62+
# [END endpoints_auth_info_backend]
6363

6464

6565
@app.route('/auth/info/googlejwt', methods=['GET'])

iot/api-client/codelabs/gateway.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ class GatewayState:
6262
gateway_state = GatewayState()
6363

6464

65+
# [START iot_mqtt_jwt]
6566
def create_jwt(project_id, private_key_file, algorithm, jwt_expires_minutes):
6667
"""Creates a JWT (https://jwt.io) to establish an MQTT connection.
6768
Args:

storage/cloud-client/notification_polling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def summarize(message):
106106

107107
def poll_notifications(project, subscription_name):
108108
"""Polls a Cloud Pub/Sub subscription for new GCS events for display."""
109-
# [BEGIN poll_notifications]
109+
# [START poll_notifications]
110110
subscriber = pubsub_v1.SubscriberClient()
111111
subscription_path = subscriber.subscription_path(
112112
project, subscription_name

storage/cloud-client/storage_change_file_storage_class.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ def change_file_storage_class(bucket_name, blob_name):
4040
)
4141
)
4242
return blob
43+
# [END storage_change_file_storage_class]
4344

4445

45-
# [START storage_change_file_storage_class]
46-
4746
if __name__ == "__main__":
4847
change_file_storage_class(bucket_name=sys.argv[1], blob_name=sys.argv[2])

0 commit comments

Comments
 (0)