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

Add support for default datacenter #217

Open
miklinux opened this issue May 21, 2021 · 3 comments
Open

Add support for default datacenter #217

miklinux opened this issue May 21, 2021 · 3 comments

Comments

@miklinux
Copy link

It would be really helpful if the default datacenter could be set at configuration time

# Initialize Consul
Diplomat.configure do |config|
   config.datacenter = 'mydc'
end

and all API calls would use that each time, unless overridden.

@pierresouchay
Copy link
Member

@miklinux Yes, that's a good idea, would you like to propose a PR, I'll be glad to review it

@miklinux
Copy link
Author

@pierresouchay Will look into it

@miklinux
Copy link
Author

Hi @pierresouchay,
here's the PR for reviewing!

#220

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants