Skip to content

Commit dba794a

Browse files
committed
1.8.7 doesn't like mandatory args after optional ones
1 parent 28edbb1 commit dba794a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/lvmsync

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ ensure
118118
infile.close unless infile.nil? or infile == $stdin
119119
end
120120

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

0 commit comments

Comments
 (0)