Skip to content

Commit

Permalink
Improve waagent pattern to capture more
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi Song authored and squirrelsc committed May 4, 2021
1 parent d76e243 commit d8794f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lisa/sut_orchestrator/azure/platform_.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@
KERNEL_VERSION_PATTERN = re.compile(r"Linux version (?P<kernel_version>.+?) ", re.M)

# 2021/03/31 00:05:17.431693 INFO Daemon Azure Linux Agent Version:2.2.38
# 2021/04/19 13:16:28 Windows Azure Linux Agent Version: WALinuxAgent-2.0.14
WALA_VERSION_PATTERN = re.compile(
r"Azure Linux Agent Version:(?P<wala_version>.+?)[\n\r]", re.M
r"Azure Linux Agent Version:(?: WALinuxAgent-)?(?P<wala_version>.+?)[\n\r]", re.M
)

KEY_HOST_VERSION = "host_version"
Expand Down

0 comments on commit d8794f7

Please sign in to comment.