Reviewed: https://review.openstack.org/504030 Committed: https://git.openstack.org/cgit/openstack/karbor/commit/?id=1f364aefa4114f913f5ff162a0c8fb1542b1cfdb Submitter: Jenkins Branch: master
commit 1f364aefa4114f913f5ff162a0c8fb1542b1cfdb Author: ericxiett <eric_xiett@163.com> Date: Thu Sep 14 18:54:20 2017 +0800
Fix NoneType error when got non-exist instance of protectable.
When calling show_resource() in protection.manager.ProtectionManager, the result may be None that got the NoneType has no attribute 'to_dict'. This patch fixes it.
Change-Id: I895fa492acbac8885cfb27640528280b69ba7c14 Closes-Bug: #1716860
Reviewed: https:/ /review. openstack. org/504030 /git.openstack. org/cgit/ openstack/ karbor/ commit/ ?id=1f364aefa41 14f913f5ff162a0 c8fb1542b1cfdb
Committed: https:/
Submitter: Jenkins
Branch: master
commit 1f364aefa4114f9 13f5ff162a0c8fb 1542b1cfdb 163.com>
Author: ericxiett <eric_xiett@
Date: Thu Sep 14 18:54:20 2017 +0800
Fix NoneType error when got non-exist instance of protectable.
When calling show_resource() in protection. manager. ProtectionManag er,
the result may be None that got the NoneType has no attribute
'to_dict'. This patch fixes it.
Change-Id: I895fa492acbac8 885cfb276405282 80b69ba7c14
Closes-Bug: #1716860