Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

make 'ctrl' an array (so that .each works) #18

Merged
merged 1 commit into from

2 participants

@thinred
Collaborator

ctrl should be an array since later on it is called with .each
Otherwise, my run complains with:

bin/openstackg5k:180:in block (2 levels) in execute': undefined methodeach' for "graphene-101-kavlan-4.nancy.grid5000.fr":String (NoMethodError)
from /usr/lib/ruby/vendor_ruby/net/ssh/multi/session.rb:222:in group'
from bin/openstackg5k:179:in
block in execute'
from /usr/lib/ruby/vendor_ruby/net/ssh/multi.rb:62:in start'
from bin/openstackg5k:170:in
execute'
from bin/openstackg5k:240:in educational'
from bin/openstackg5k:155:in
runos'
from bin/openstackg5k:339:in `

'

@sbadia sbadia merged commit afb1299 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 3, 2013
  1. make 'ctrl' an array (so that .each works)

    Tomasz Buchert authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  bin/openstackg5k
View
2  bin/openstackg5k
@@ -166,7 +166,7 @@ class Openstack
Puppetg5k::clush_nodes(good)
Puppetg5k::generate_site(good)
Puppetg5k::autosign_puppet(good)
- ctrl = nodes.shift
+ ctrl = [ nodes.shift ]
Net::SSH::Multi.start(:on_error => :warn) do |session|
good.each do |node|
session.use "root@#{node}"
Something went wrong with that request. Please try again.