Skip to content

Commit

Permalink
Merge pull request #202 from Shubha-accenture/composer-api-changes
Browse files Browse the repository at this point in the history
Composer API changes for handling dict()
  • Loading branch information
ojarjur authored Dec 20, 2024
2 parents 09e649a + 781fb6c commit dfe1dd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dataproc_jupyter_plugin/controllers/composer.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ async def get(self):
await credentials.get_cached(), self.log, client_session
)
environments = await client.list_environments()
self.set_header("Content-Type", "application/json")
self.finish(json.dumps(environments, default=lambda x: x.dict()))
except Exception as e:
self.log.exception(f"Error fetching composer environments: {str(e)}")
Expand Down

0 comments on commit dfe1dd4

Please sign in to comment.