wouterdebie/i2cssh — Issue #5: Cluster File not being parsed correctly?
Author: drewrockshard
Created: 2011-10-21 14:45:18+00:00
State: open

I am having an issue with i2cssh interpretting the cluster file (.i2csshrc). Here is my .i2csshrc file:

```
---
clusters:
servers-a:
- server01
- server02
servers-b:
- server03
- server04
```

Here's the error I get:

```
/usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/syck.rb:135:in `load': syntax error on line 3, col 3: `	- server01' (ArgumentError)
from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/syck.rb:135:in `load'
from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1/gems/i2cssh-1.2.3/bin/i2cssh:49:in `block (2 levels) in '
from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/optparse.rb:1308:in `call'
from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/optparse.rb:1308:in `block in parse_in_order'
from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/optparse.rb:1264:in `catch'
from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/optparse.rb:1264:in `parse_in_order'
from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/optparse.rb:1258:in `order!'
from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/optparse.rb:1349:in `permute!'
from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/optparse.rb:1370:in `parse!'
from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1/gems/i2cssh-1.2.3/bin/i2cssh:64:in `'
from /usr/local/Cellar/ruby/1.9.2-p290/bin/i2cssh:19:in `load'
from /usr/local/Cellar/ruby/1.9.2-p290/bin/i2cssh:19:in `

'
```

Was wondering if there is a fix, or if I'm just got the syntax wrong for the cluster file.