From 81b9b497c7aa569ba8990d746db81f04a626185f Mon Sep 17 00:00:00 2001 From: Divya K Konoor Date: Thu, 13 Jun 2019 03:48:25 -0400 Subject: [PATCH] Add Debug Log Adding debug log statment to sync out-of-tree driver with in-tree as per https://github.com/openstack/nova/commit/ 8545ba2af7476e0884b5e7fb90965bef92d605bc#diff- 5dc5ac3c2bf8010333f1752a1e70ce18 Change-Id: Ia2247b11539070127e509335905351e1695c43d2 --- nova_powervm/virt/powervm/media.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nova_powervm/virt/powervm/media.py b/nova_powervm/virt/powervm/media.py index 8a8fff9c..c68786df 100644 --- a/nova_powervm/virt/powervm/media.py +++ b/nova_powervm/virt/powervm/media.py @@ -1,4 +1,4 @@ -# Copyright 2015, 2018 IBM Corp. +# Copyright 2015, 2019 IBM Corp. # # All Rights Reserved. # @@ -77,6 +77,9 @@ class ConfigDrivePowerVM(object): network_info = copy.deepcopy(network_info) for vif in network_info: if vif.get('type') != 'ovs': + LOG.debug('Changing vif type from %(type)s to vif for vif ' + '%(id)s.', {'type': vif.get('type'), + 'id': vif.get('id')}) vif['type'] = 'vif' return network_info