From 1d553b58e006b3c39e678ccaca95473ff8e93b45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ely=C3=A9zer=20Rezende?= Date: Wed, 20 Sep 2017 15:40:15 -0300 Subject: [PATCH] Drop unused _read_key_file function --- rho/scancommand.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/rho/scancommand.py b/rho/scancommand.py index adcb52f..2fff63e 100644 --- a/rho/scancommand.py +++ b/rho/scancommand.py @@ -33,15 +33,6 @@ from rho.translation import _ -# Read ssh key from file -def _read_key_file(filename): - keyfile = open(os.path.expanduser( - os.path.expandvars(filename)), "r") - sshkey = keyfile.read() - keyfile.close() - return sshkey - - def auth_as_ansible_host_vars(auth): """Get the Ansible host vars that implement an auth.