commit | 1711b2c81cac09efab1a4f10acf976142b5198a4 | [log] [tgz] |
---|---|---|
author | Hyunsun Moon <hyunsun.moon@gmail.com> | Fri May 07 15:31:01 2021 -0700 |
committer | Hyunsun Moon <hyunsun.moon@gmail.com> | Fri May 07 15:31:10 2021 -0700 |
tree | ad3244f3c4dca65883f486a19a38ca06c82b82a1 | |
parent | 428225cd006dad028cc804cba0579526b80c1dcd [diff] [blame] |
Fix vfioveth to return empty string for mac when not provided Change-Id: I32fc413812f8c8c799f7441d14ac8b62ae20089f
diff --git a/vfioveth b/vfioveth index 8fb1e5a..c84165d 100755 --- a/vfioveth +++ b/vfioveth
@@ -30,7 +30,7 @@ add_pair_ns() { vfpci=$(echo $CNI_CONF | jq -r '.deviceID') - mac=$(echo $CNI_CONF | jq -r '.runtimeConfig.mac') + mac=$(echo $CNI_CONF | jq -r '.runtimeConfig.mac // empty') if [ -z "$mac" ]; then mac=$(get_mac_with_vfpci $vfpci) fi