# HG changeset patch # User Goffi # Date 1619108289 -7200 # Node ID 375449da79f68647471e6deffdc754b79220cebd # Parent 943de4f9ce509e0525ed061c9d83d63993bc5eee comp file sharing: fix port type: when port was retrieved from config, it was a string instead of a int diff -r 943de4f9ce50 -r 375449da79f6 sat/plugins/plugin_comp_file_sharing.py --- a/sat/plugins/plugin_comp_file_sharing.py Thu Apr 22 18:17:15 2021 +0200 +++ b/sat/plugins/plugin_comp_file_sharing.py Thu Apr 22 18:18:09 2021 +0200 @@ -362,8 +362,8 @@ "XEP-0329_parseResult_directory", self._getDirectoryMetadataElts) self.files_path = self.host.getLocalPath(None, C.FILES_DIR, profile=False) - self.http_port = self.host.memory.getConfig( - 'component file_sharing', 'http_upload_port', 8888) + self.http_port = int(self.host.memory.getConfig( + 'component file_sharing', 'http_upload_port', 8888)) connection_type = self.host.memory.getConfig( 'component file_sharing', 'http_upload_connection_type', 'https') if connection_type not in ('http', 'https'):