Skip to content

Commit

Permalink
1.8.7 doesn't like mandatory args after optional ones
Browse files Browse the repository at this point in the history
  • Loading branch information
mpalmer committed Oct 11, 2014
1 parent 28edbb1 commit dba794a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/lvmsync
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ ensure
infile.close unless infile.nil? or infile == $stdin
end

def process_dumpdata(instream, destdev, snapback = nil, opts)
def process_dumpdata(instream, destdev, snapback = nil, opts = {})
handshake = instream.readline.chomp
unless handshake == PROTOCOL_VERSION
$stderr.puts "Handshake failed; protocol mismatch? (saw '#{handshake}' expected '#{PROTOCOL_VERSION}'"
Expand Down

0 comments on commit dba794a

Please sign in to comment.