Commit 531baf8e authored by Iustin Pop's avatar Iustin Pop
Browse files

cleanup: _InitSSHSetup doesn't need its argument

Reviewed-by: imsnah
parent fab1e3a4
...@@ -38,14 +38,12 @@ from ganeti import constants ...@@ -38,14 +38,12 @@ from ganeti import constants
from ganeti import objects from ganeti import objects
from ganeti import ssconf from ganeti import ssconf
def _InitSSHSetup(node): def _InitSSHSetup():
"""Setup the SSH configuration for the cluster. """Setup the SSH configuration for the cluster.
This generates a dsa keypair for root, adds the pub key to the This generates a dsa keypair for root, adds the pub key to the
permitted hosts and adds the hostkey to its own known hosts. permitted hosts and adds the hostkey to its own known hosts.
@param node: the name of this host as an FQDN
""" """
priv_key, pub_key, auth_keys = ssh.GetUserFiles(constants.GANETI_RUNAS) priv_key, pub_key, auth_keys = ssh.GetUserFiles(constants.GANETI_RUNAS)
...@@ -192,7 +190,7 @@ def InitCluster(cluster_name, mac_prefix, def_bridge, ...@@ -192,7 +190,7 @@ def InitCluster(cluster_name, mac_prefix, def_bridge,
sshkey = sshline.split(" ")[1] sshkey = sshline.split(" ")[1]
utils.AddHostToEtcHosts(hostname.name) utils.AddHostToEtcHosts(hostname.name)
_InitSSHSetup(hostname.name) _InitSSHSetup()
# init of cluster config file # init of cluster config file
cluster_config = objects.Cluster( cluster_config = objects.Cluster(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment