Skip to content

Commit d5384b2

Browse files
committed
v1.3.6 ConfigTools initialization fix
1 parent 7c04ad6 commit d5384b2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "bs1200"
3-
version = "1.3.5"
3+
version = "1.3.6"
44
authors = [
55
{ name = "Mikhail Kharitonov", email = "[email protected]"}
66
]
@@ -13,7 +13,6 @@ license = {file = "LICENSE"}
1313
dependencies = ["python-can", "uptime", "nisyscfg", "paramiko", "scp"]
1414
classifiers= [
1515
"Programming Language :: Python :: 3",
16-
"Programming Language :: Python :: 3.6",
1716
"Programming Language :: Python :: 3.7",
1817
"Programming Language :: Python :: 3.8",
1918
"Programming Language :: Python :: 3.9",

src/bs1200/cfg_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(self, tgt: str, user: str, password : str):
3939
self.tgt_address = tgt
4040
self.username = user
4141
self.password = password
42-
self.open()
42+
#self.open()
4343

4444
def __enter__(self, *args, **kwargs):
4545
try:

src/bs1200/configuration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def retrieve_file(self, tgt_file: str, dest: str):
3838
#if error from FTP, use SCP via SSH
3939
print("Could not connect to target via FTP, using SCP")
4040
self.__9603 = True
41+
self.SCP.open()
4142
if("ni-rt.ini" in tgt_file):
4243
tgt_file = "/etc/natinst/share/ni-rt.ini"
4344
local_copy = self.SCP.get_file(tgt_file, dest)

0 commit comments

Comments
 (0)