@@ -47,20 +47,20 @@ def conf_sshd(self, disable_password):
4747 snippet_file = os .path .join (snippet_dir , "80-acl-walinuxagent.conf" )
4848 option = "no" if disable_password else "yes"
4949 lines = [
50- f "PasswordAuthentication { option } " ,
51- f "ChallengeResponseAuthentication { option } " ,
52- f "ClientAliveInterval { str (conf .get_ssh_client_alive_interval ())} "
50+ "PasswordAuthentication {0}" . format ( option ) ,
51+ "ChallengeResponseAuthentication {0}" . format ( option ) ,
52+ "ClientAliveInterval {0}" . format (conf .get_ssh_client_alive_interval ())
5353 ]
5454 fileutil .write_file (snippet_file , "\n " .join (lines ))
5555 logger .info ("Added SSH config snippet {0} for ACL" .format (snippet_file ))
5656 else :
5757 # If snippets are unavailable, fall back to base behavior (ensuring file is not a symlink).
5858 conf_file_path = conf .get_sshd_conf_file_path ()
59- conf_file_path2 = f" { conf_file_path } .wal.tmp"
59+ conf_file_path2 = "{0 }.wal.tmp". format ( conf_file_path )
6060 shutil .copy (conf_file_path , conf_file_path2 )
6161 os .remove (conf_file_path )
6262 os .rename (conf_file_path2 , conf_file_path )
63- super (CoreosCommonUtil , self ).conf_sshd (disable_password )
63+ super (AclUtil , self ).conf_sshd (disable_password )
6464
6565 def restart_if (self , ifname , retries = 3 , wait = 5 ):
6666 """
0 commit comments