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
Reviewed: https:/ /review. openstack. org/359424 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=d3c7396d876 81b82327c59c27f e14cf5e20c3ba5
Committed: https:/
Submitter: Jenkins
Branch: master
commit d3c7396d87681b8 2327c59c27fe14c f5e20c3ba5
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
Closes-bug: #1563325