diff options
author | 2025-01-09 17:10:00 +0100 | |
---|---|---|
committer | 2025-01-09 17:10:00 +0100 | |
commit | f443c73a6c92b6c591f802dfbfe43f995771ed6b (patch) | |
tree | 6b1fbc5838c15e60df3ae01dd77573a852b6fc95 | |
parent | 0a3b2703149d02b97915831d39b66d1d8b1feb6a (diff) |
fix(iputil): Do not use -e option for awk
Probably another consequence of ubuntu2404 migration.
Nginx tests were failing (indirectly) due to "awk -e" failing.
Change-Id: I23ebc86de55e5301727f34c1337ed163ead1506c
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
-rw-r--r-- | resources/libraries/python/IPUtil.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/libraries/python/IPUtil.py b/resources/libraries/python/IPUtil.py index 309d8241ee..32f510c80b 100644 --- a/resources/libraries/python/IPUtil.py +++ b/resources/libraries/python/IPUtil.py @@ -1,5 +1,5 @@ -# Copyright (c) 2024 Cisco and/or its affiliates. -# Copyright (c) 2024 PANTHEON.tech s.r.o. +# Copyright (c) 2025 Cisco and/or its affiliates. +# Copyright (c) 2025 PANTHEON.tech s.r.o. # 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: @@ -498,7 +498,7 @@ class IPUtil: else: cmd = f"ip addr show dev {interface}" - cmd += u" | grep 'inet ' | awk -e '{print $2}'" + cmd += u" | grep 'inet ' | awk '{print $2}'" cmd += f" | grep '{ip_addr_with_prefix}'" _, stdout, _ = exec_cmd(node, cmd, timeout=5, sudo=True) |