Skip to content

Commit

Permalink
tests/acceptance/virtiofs_submounts.py: fix setup of SSH pubkey
Browse files Browse the repository at this point in the history
The public key argument should be a path to a file, and not the
public key data.

Reported-by: Wainer dos Santos Moschetta <[email protected]>
Signed-off-by: Cleber Rosa <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Willian Rampazzo <[email protected]>
Reviewed-by: Wainer dos Santos Moschetta <[email protected]>
Signed-off-by: John Snow <[email protected]>
  • Loading branch information
clebergnu authored and jnsnow committed Jun 1, 2021
1 parent fd1ce58 commit d214740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/acceptance/virtiofs_submounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def setUp(self):

self.run(('ssh-keygen', '-N', '', '-t', 'ed25519', '-f', self.ssh_key))

pubkey = open(self.ssh_key + '.pub').read()
pubkey = self.ssh_key + '.pub'

super(VirtiofsSubmountsTest, self).setUp(pubkey)

Expand Down

0 comments on commit d214740

Please sign in to comment.