File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -526,7 +526,6 @@ def __api_request(self, query):
526526 if hasattr (error , 'code' ):
527527 msg += ' code: %s' % error .code
528528 if hasattr (error , 'reason' ):
529- self ._rome_warning (str (error .reason ))
530529 msg += ' reason: %s' % error .reason
531530 if not (hasattr (error , 'code' ) or hasattr (error , 'reason' )):
532531 msg += ' unknown error (Kevin heart Python)'
@@ -538,19 +537,6 @@ def __api_request(self, query):
538537
539538 return response
540539
541- def _rome_warning (self , reason ):
542- # "Connection reset by peer" or
543- # "EOF occurred in violation of protocol"
544- # may indicate no TLS 1.[12]
545- if (('Errno 54' in reason or
546- 'EOF occurred in violation of protocol' in reason ) and
547- hasattr (ssl , 'OPENSSL_VERSION_NUMBER' ) and
548- ssl .OPENSSL_VERSION_NUMBER < 0x1000100 ):
549- x = 'WARNING: Your SSL (%s) may not support TLS 1.1.' % \
550- ssl .OPENSSL_VERSION
551- x += ' PAN-OS 8.0 does not allow TLS 1.0 connections by default.'
552- self ._log (DEBUG1 , x )
553-
554540 def __set_api_key (self ):
555541 if self .api_key is None :
556542 self .keygen ()
You can’t perform that action at this time.
0 commit comments