Skip to content

Commit

Permalink
Use timeout argument for all paramiko timeout options
Browse files Browse the repository at this point in the history
  • Loading branch information
bear454 authored and rjschwei committed Jan 24, 2024
1 parent e27c743 commit 2d4fffc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion lib/ec2imgutils/ec2uploadimg.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,9 @@ def _establish_ssh_connection(self):
key_filename=self.ssh_key_private_key_file,
username=self.inst_user_name,
hostname=instance_ip,
timeout=10
timeout=self.ssh_timeout,
banner_timeout=self.ssh_timeout,
auth_timeout=self.ssh_timeout
)
except (Exception, ConnectionResetError):
if self.log_level == logging.DEBUG:
Expand Down
4 changes: 1 addition & 3 deletions python3-ec2imgutils.spec
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Source0: %{upstream_name}-%{version}.tar.bz2
Requires: python3
Requires: python3-boto3 >= 1.29.84
Requires: python3-dateutil
Requires: python3-paramiko
Requires: python3-paramiko >= 2.2.0
BuildRequires: python3-boto3 >= 1.29.84
BuildRequires: python3-dateutil
BuildRequires: python3-setuptools
Expand Down Expand Up @@ -87,5 +87,3 @@ gzip %{buildroot}/%{_mandir}/man1/*
%{_bindir}/*

%changelog


2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
boto3>=1.4.1
paramiko
paramiko>=2.2.0
python-dateutil

0 comments on commit 2d4fffc

Please sign in to comment.