We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 657ed8c commit 401efc1Copy full SHA for 401efc1
1 file changed
examples/discovery_v1.py
@@ -11,9 +11,7 @@
11
environments = discovery.list_environments()
12
print(json.dumps(environments, indent=2))
13
14
-news_environments = [x for x in environments['environments'] if
15
- x['name'] == 'Watson News Environment']
16
-news_environment_id = news_environments[0]['environment_id']
+news_environment_id = 'system'
17
print(json.dumps(news_environment_id, indent=2))
18
19
collections = discovery.list_collections(news_environment_id)
0 commit comments