Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pgombar committed Jul 22, 2020
1 parent d5e9fd3 commit 455ddd5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions azurelinuxagent/common/protocol/wire.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
import azurelinuxagent.common.logger as logger
import azurelinuxagent.common.utils.textutil as textutil
from azurelinuxagent.common.datacontract import validate_param
from azurelinuxagent.common.event import add_event, add_periodic, WALAEventOperation, EVENTS_DIRECTORY, EventLogger
from azurelinuxagent.common.event import add_event, add_periodic, WALAEventOperation, EVENTS_DIRECTORY, EventLogger, \
report_event
from azurelinuxagent.common.exception import ProtocolNotFoundError, \
ResourceGoneError, ExtensionDownloadError, InvalidContainerError, ProtocolError, HttpError
from azurelinuxagent.common.future import httpclient, bytebuffer, ustr
Expand Down Expand Up @@ -1232,7 +1233,7 @@ def get_artifacts_profile(self):
return artifacts_profile

def upload_logs(self, content):
host_func = self._upload_logs_through_host(content)
host_func = lambda: self._upload_logs_through_host(content)
# propagate any exceptions up to the main thread
return self.call_hostplugin_with_container_check(host_func)

Expand Down

0 comments on commit 455ddd5

Please sign in to comment.