Skip to content

Commit

Permalink
Add region tags for getting config. (GoogleCloudPlatform#1301)
Browse files Browse the repository at this point in the history
* Add region tags for getting config.

* Update cloudiot_http_example.py

* Update cloudiot_http_example.py
  • Loading branch information
noerog authored and Jon Wayne Parrott committed Jan 3, 2018
1 parent d6a7f6b commit 7d16203
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iot/api-client/http_example/cloudiot_http_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def publish_message(
@retry.Retry(
predicate=retry.if_exception_type(AssertionError),
deadline=_BACKOFF_DURATION)
# [START iot_http_getconfig]
def get_config(
version, message_type, base_url, project_id, cloud_region, registry_id,
device_id, jwt_token):
Expand All @@ -118,6 +119,7 @@ def get_config(
raise AssertionError('Not OK response: {}'.format(resp.status_code))

return resp
# [END iot_http_getconfig]


def parse_command_line_args():
Expand Down

0 comments on commit 7d16203

Please sign in to comment.