Skip to content

Commit

Permalink
Suppress CryptographyDeprecationWarning.
Browse files Browse the repository at this point in the history
Caused by the paramiko not being updated for cryptography >= 2.4.

Fixes: Nextpertise#50
  • Loading branch information
sebastic committed Apr 10, 2020
1 parent cf898e8 commit 85ff289
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lib/command.py
@@ -1,12 +1,20 @@
import socket
import subprocess
import time
import warnings

from cryptography.utils import CryptographyDeprecationWarning
import paramiko

from .logger import logger


warnings.filterwarnings(
action='ignore',
category=CryptographyDeprecationWarning,
)


class command():

def checkRemoteHostViaSshProtocol(self, job,
Expand Down
8 changes: 8 additions & 0 deletions src/lib/rsync.py
@@ -1,13 +1,21 @@
import socket
import subprocess
import time
import warnings

from cryptography.utils import CryptographyDeprecationWarning
import paramiko

from models.config import config
from lib.logger import logger


warnings.filterwarnings(
action='ignore',
category=CryptographyDeprecationWarning,
)


class rsync():

def checkRemoteHost(self, job):
Expand Down

0 comments on commit 85ff289

Please sign in to comment.