The take_action() function was calling get_agent() with the wrong
attribute, causing agent deletion to fail. It turns out calling
get_agent() isn't necessary; this removes the call entirely and moves
the 'ignore_missing' argument to the delete_agent() function.
Change-Id: Iaa3754a3be0765112f396495fa5fb2e32e6eae4e
Closes-Bug: #1711301
(cherry picked from commit 6c8e5177bc54ba215aad310094b1eefd6ce709cf)
Reviewed: https:/ /review. openstack. org/518516 /git.openstack. org/cgit/ openstack/ python- openstackclient /commit/ ?id=e2cbe8bedb8 68cc9412f902f54 d75296ce39eed4
Committed: https:/
Submitter: Zuul
Branch: stable/ocata
commit e2cbe8bedb868cc 9412f902f54d752 96ce39eed4
Author: npraveen35 <email address hidden>
Date: Fri Aug 18 15:48:54 2017 +0530
Neutron agent delete: remove the wrong argument
The take_action() function was calling get_agent() with the wrong
attribute, causing agent deletion to fail. It turns out calling
get_agent() isn't necessary; this removes the call entirely and moves
the 'ignore_missing' argument to the delete_agent() function.
Change-Id: Iaa3754a3be0765 112f396495fa5fb 2e32e6eae4e 15aad310094b1ee fd6ce709cf)
Closes-Bug: #1711301
(cherry picked from commit 6c8e5177bc54ba2