Reduce log level in "ensure_device_is_ready"

If the device is not ready, the method should inform about this
event. The code calling this method, if needed, can write a higher
log message.

Change-Id: Ib7c5ba736f6e4ccc88df665faeef304c176a24e7
Closes-Bug: #1896920
(cherry picked from commit b1f1c8aa50)
This commit is contained in:
Rodolfo Alonso Hernandez 2020-09-23 16:35:45 +00:00 committed by David Hill
parent 124215ccd6
commit 993597d998
1 changed files with 2 additions and 2 deletions

View File

@ -969,8 +969,8 @@ def ensure_device_is_ready(device_name, namespace=None):
# Ensure the device has a MAC address and is up, even if it is already # Ensure the device has a MAC address and is up, even if it is already
# up. # up.
if not dev.link.exists or not dev.link.address: if not dev.link.exists or not dev.link.address:
LOG.error("Device %s cannot be used as it has no MAC " LOG.info("Device %s cannot be used as it has no MAC "
"address", device_name) "address", device_name)
return False return False
dev.link.set_up() dev.link.set_up()
except RuntimeError: except RuntimeError: