Skip to content

Commit

Permalink
DS VMware: modify a few log level (#4284)
Browse files Browse the repository at this point in the history
Multiple ip addresses are common scenario for modern Linux, so set
debug log level for such cases.
  • Loading branch information
PengpengSun authored Jul 24, 2023
1 parent 1f1ca55 commit 4a6a9d3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cloudinit/sources/DataSourceVMware.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Cloud-Init DataSource for VMware
#
# Copyright (c) 2018-2022 VMware, Inc. All Rights Reserved.
# Copyright (c) 2018-2023 VMware, Inc. All Rights Reserved.
#
# Authors: Anish Swaminathan <[email protected]>
# Andrew Kutz <[email protected]>
Expand Down Expand Up @@ -719,7 +719,7 @@ def get_default_ip_addrs():
af_inet4 = addr4_fams.get(netifaces.AF_INET)
if af_inet4:
if len(af_inet4) > 1:
LOG.warning(
LOG.debug(
"device %s has more than one ipv4 address: %s",
dev4,
af_inet4,
Expand All @@ -737,7 +737,7 @@ def get_default_ip_addrs():
af_inet6 = addr6_fams.get(netifaces.AF_INET6)
if af_inet6:
if len(af_inet6) > 1:
LOG.warning(
LOG.debug(
"device %s has more than one ipv6 address: %s",
dev6,
af_inet6,
Expand All @@ -752,7 +752,7 @@ def get_default_ip_addrs():
af_inet6 = addr4_fams.get(netifaces.AF_INET6)
if af_inet6:
if len(af_inet6) > 1:
LOG.warning(
LOG.debug(
"device %s has more than one ipv6 address: %s",
dev4,
af_inet6,
Expand All @@ -767,7 +767,7 @@ def get_default_ip_addrs():
af_inet4 = addr6_fams.get(netifaces.AF_INET)
if af_inet4:
if len(af_inet4) > 1:
LOG.warning(
LOG.debug(
"device %s has more than one ipv4 address: %s",
dev6,
af_inet4,
Expand Down

0 comments on commit 4a6a9d3

Please sign in to comment.