You are correct my memory is a bit fuzzy, and your interpretation is probably correct.
Edit : after further checking, he was pretending having the knife of st. Peter, used to cut off the high priest servant's ear in the garden of Gethsemane to prevent the arrest of Jesus. (Which makes more sense..)
10 Then Simon Peter having a sword drew it, and smote the high priest's servant, and cut off his right ear. The servant's name was Malchus.
11 Then said Jesus unto Peter, Put up thy sword into the sheath: the cup which my Father hath given me, shall I not drink it?
John 18:10–11