-
Notifications
You must be signed in to change notification settings - Fork 3
`write': wrong argument type Hash (expected String) (TypeError) #2
Copy link
Copy link
Open
Description
Hello,
I'm trying out a simple config that has only one ssh host:
switches:
repo_path: "/home/vagrant/switches" #the path to the repo (absolute path recommended)
git_author: #the author to specify for git commits and annotated tags
email: "something@example.com"
name: "something"
revfmt: 'r%d' #sprintf format to use for tags - this example produces SVN style tags
defuser: 'someuser' #default username for SSH if none is specified for a particular host
defdirkey: 'hostname' #default YAML key to use for each host's config dir
ssh_keys: #array of SSH keys to attempt authentication with (must be OpenSSH format)
- '/home/vagrant/.ssh/id_rsa' #POSIX style
hosts: #array of hosts we want to fetch data for
-
hostname: '10.10.10.200'
dir: 'someswitch'
ssh:
running-config:
cmd: 'sh run'
crypto-authentication:
cmd: 'sh authen'
I'm running this against an HP switch that has public-key auth setup for the manager access.
I get this error:
vagrant@jessie:~/Project-Illuminati$ bundle exec ruby nwo.rb -f p2.yml -n switches
10.10.10.200 - premature channel close
/home/vagrant/Project-Illuminati/lib/rugged-illuminati/commit.rb:74:in `write': wrong argument type Hash (expected String) (TypeError)
from /home/vagrant/Project-Illuminati/lib/rugged-illuminati/commit.rb:74:in `add_blob'
from /home/vagrant/Project-Illuminati/lib/rugged-illuminati/commit.rb:80:in `block (2 levels) in add_files'
I've tried with a newly initialized git repos, no repos and a repository with an initial commit with a dummy file. I walways get the same error.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels