diff options
author | Peter Mikus <peter.mikus@protonmail.ch> | 2024-10-28 13:26:16 +0100 |
---|---|---|
committer | Peter Mikus <peter.mikus@protonmail.ch> | 2024-10-28 12:34:38 +0000 |
commit | dc866890a037d1c04fa47793d20dbb25e6a4ecfb (patch) | |
tree | e7cde0cd1c5d19c8718dadbfaaeefaf59a32bbc9 | |
parent | e148e329d06238853b376116beec1b44d29694fd (diff) |
fix(core): Ubuntu 24.04oper-241028
Signed-off-by: Peter Mikus <peter.mikus@protonmail.ch>
Change-Id: If7e33a924ad347eb9396609010acf763b3a71f15
(cherry picked from commit 77e76813afb5418f7c294fe433805620396d3fcf)
-rw-r--r-- | resources/libraries/python/DUTSetup.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/resources/libraries/python/DUTSetup.py b/resources/libraries/python/DUTSetup.py index 64f3b4317c..bc8af372df 100644 --- a/resources/libraries/python/DUTSetup.py +++ b/resources/libraries/python/DUTSetup.py @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Cisco and/or its affiliates. +# Copyright (c) 2024 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -631,7 +631,9 @@ class DUTSetup: """ if not hugesize: hugesize = "$(grep Hugepagesize /proc/meminfo | awk '{ print $2 }')" - command = f"cat /sys/kernel/mm/hugepages/hugepages-{hugesize}kB/*" + command = ( + f"cat /sys/kernel/mm/hugepages/hugepages-{hugesize}kB/*hugepages*" + ) stdout, _ = exec_cmd_no_error(node, command) try: line = stdout.splitlines() |