Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Replica set splat error ? #12

Open
sdh100shaun opened this issue Nov 13, 2014 · 1 comment
Open

Replica set splat error ? #12

sdh100shaun opened this issue Nov 13, 2014 · 1 comment

Comments

@sdh100shaun
Copy link

When trying to run the recipe I get

mongodb/providers/replica_set.rb:56: syntax error, unexpected tIDENTIFIER, expecting tAMPER
==> app: ...'host'].split(':'), admin_user, admin_pass)

Ruby 2.0.0p481 (2014-05-08 revision 45883)

Sorry my ruby is pretty basic and I don't use splat very much - is there an actual error here or a misconfig by me.

@motns
Copy link
Member

motns commented Nov 20, 2014

Hi there, and apologies for the delay!
What are you passing in as the members argument to hipsnip_mongodb_replica_set? Basically the provider expects nodes to be in the ip:port format.

FYI what happens in the line above is that we take for example 127.0.0.1:27017, and split it on : into 127.0.0.1 and 27017, which are then passed into the create_single_node_connection function as two parameters: create_single_node_connection("127.0.0.1", "27017").

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

No branches or pull requests

2 participants