Skip to content

Commit 8d5859a

Browse files
committed
Ruff fixes: trailing whitespace
1 parent 1a47946 commit 8d5859a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

modules/machinery/hyperv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ def _initialize_check(self):
3636

3737
self.username = self.options.hyperv.username
3838
if not self.options.hyperv.ssh_key:
39-
raise CuckooMachineError("Hyper-V ssh private key path missing from hyperv.conf")
39+
raise CuckooMachineError("Hyper-V ssh private key path missing from hyperv.conf")
4040
self.ssh_key = self.options.hyperv.ssh_key
4141

4242
super(HyperV, self)._initialize_check()
4343

4444
log.info("Hyper-V machinery module initialised (%s).", self.host)
4545

4646
def run_cmd(self, cmd):
47-
r = subprocess.Popen("ssh -i {key} {user}@{host} '{cmd}'".format(key=self.ssh_key, user=self.username, host=self.host, cmd="powershell.exe " + cmd),
47+
r = subprocess.Popen("ssh -i {key} {user}@{host} '{cmd}'".format(key=self.ssh_key, user=self.username, host=self.host, cmd="powershell.exe " + cmd),
4848
shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
4949
return(r[0].decode().strip())
5050

modules/machinery/kvmremote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def _initialize_check(self):
2828

2929
for machine in self.machines():
3030
machine.dsn = self.dsn
31-
machine.interface = self.interface
31+
machine.interface = self.interface
3232

3333
super(KVMRemote, self)._initialize_check()
3434

0 commit comments

Comments
 (0)