Using get() to access keys like "summary.guest.toolsStatus" and
"summary.guest.toolrunningStatus" to avoid exception during hard reboot.
This change would use a default values even if they don't exist in dict
as we can have VMs where VM tools wouldn't be installed/running which leads
to hard reboot
Change-Id: I332867fe783d6d47b81d8a53153af140d4158217
Closes-bug: #1563325
(cherry picked from commit d3c7396d87681b82327c59c27fe14cf5e20c3ba5)
Reviewed: https:/ /review. openstack. org/404658 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=e0f021f1877 58268e2bd732f63 cf88fbf703320c
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit e0f021f18775826 8e2bd732f63cf88 fbf703320c
Author: Sivasathurappan Radhakrishnan <email address hidden>
Date: Tue Aug 23 20:47:06 2016 +0000
Using get() method to prevent KeyError
Using get() to access keys like "summary. guest.toolsStat us" and guest.toolrunni ngStatus" to avoid exception during hard reboot.
"summary.
This change would use a default values even if they don't exist in dict
as we can have VMs where VM tools wouldn't be installed/running which leads
to hard reboot
Change-Id: I332867fe783d6d 47b81d8a53153af 140d4158217 2327c59c27fe14c f5e20c3ba5)
Closes-bug: #1563325
(cherry picked from commit d3c7396d87681b8