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

Fixes #168 discover compartment id from metadata when not set in config #169

Merged
merged 1 commit into from
Apr 5, 2018

Conversation

jhorwit2
Copy link
Member

@jhorwit2 jhorwit2 commented Apr 4, 2018

No description provided.

@@ -103,6 +104,16 @@ func New(config *Config) (Interface, error) {
subnetCache: cache.NewTTLStore(subnetCacheKeyFn, time.Duration(24)*time.Hour),
}

compartmentOCID := config.Auth.CompartmentOCID
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assignment here seems to be redundant.

if config.Auth.CompartmentOCID == "" {

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 good catch. This was copy/pasta from the original PR. i'll update

@prydie prydie merged commit d0d6558 into master Apr 5, 2018
@prydie prydie deleted the jah/fixes-168 branch April 5, 2018 09:06
@prydie prydie added this to the 0.3.2 milestone Apr 5, 2018
ayushverma14 pushed a commit to ayushverma14/oci-cloud-controller-manager that referenced this pull request Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants