Commit f760f2f0 by Csók Tamás

client: flake8 correction

parent 04398abd
...@@ -6,9 +6,9 @@ Main program of the Client written for CIRCLE Cloud. ...@@ -6,9 +6,9 @@ Main program of the Client written for CIRCLE Cloud.
The Client job is to help the ease of use of the cloud system. The Client job is to help the ease of use of the cloud system.
""" """
import platform
import argparse import argparse
import logging import logging
import platform
from time import gmtime, strftime from time import gmtime, strftime
from windowsclasses import ClientRegistry from windowsclasses import ClientRegistry
......
...@@ -37,11 +37,11 @@ def connect(vm): ...@@ -37,11 +37,11 @@ def connect(vm):
if vm.protocol == "SSH": if vm.protocol == "SSH":
logger.info('SSH protocol received') logger.info('SSH protocol received')
arguments = str("-ssh -P %(port)s -pw %(password)s" arguments = str("-ssh -P %(port)s -pw %(password)s"
" %(user)s@%(host)s" % { " %(user)s@%(host)s" % {
'port': vm.port, 'port': vm.port,
'password': vm.password, 'password': vm.password,
'user': vm.user, 'user': vm.user,
'host': vm.host}) 'host': vm.host})
directory = os.path.dirname(os.path.abspath(__file__)) directory = os.path.dirname(os.path.abspath(__file__))
logger.info('Popen: "%s\\putty.exe"', directory) logger.info('Popen: "%s\\putty.exe"', directory)
logger.debug('Determined arguments: %s', arguments) logger.debug('Determined arguments: %s', arguments)
......
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 sign in to comment