Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling zero value correctly for GCPConfig.CredentialsJSON #45

Merged
merged 1 commit into from
Jun 13, 2022

Conversation

rrampage
Copy link
Contributor

Due to recent change of type of GCPConfig.CredentialsJSON from []byte to string, service does not handle zero value correctly (needed for picking GOOGLE_APPLICATION_CREDENTIALS from environment).

The zero value for string is "" which gets converted to [] (0 length slice) which is not nil. This results in service creating an empty slice for GCPConfig.CredentialsJSON.

@CLAassistant
Copy link

CLAassistant commented Jun 13, 2022

CLA assistant check
All committers have signed the CLA.

@rrampage rrampage changed the title Handling nil value correctly for GCP config Handling zero value correctly for GCP config Jun 13, 2022
@rrampage rrampage changed the title Handling zero value correctly for GCP config Handling zero value correctly for GCPConfig.CredentialsJSON Jun 13, 2022
@frostbyte73 frostbyte73 merged commit 9246222 into livekit:main Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants