Fix TypeError being throw by wait_ready in Engine System Agent.
Currently, wait_ready wrongly does call(template, False, timeout) but the second param is expected to be a ResourceManager, leading to the TypeError. This fix replaces the wrong function call with call_raw(template, timeout). Change-Id: I57e92eae95efc3e68b51ea751d08dd87946f85cb Closes-Bug: #1633176
This commit is contained in:
parent
b53e216081
commit
1e5a1cbf80
|
@ -155,7 +155,7 @@ class Agent(object):
|
|||
def wait_ready(self, timeout=100):
|
||||
self._check_enabled()
|
||||
template = {'Body': 'return', 'FormatVersion': '2.0.0', 'Scripts': {}}
|
||||
self.call(template, False, timeout)
|
||||
self.call_raw(template, timeout)
|
||||
|
||||
def _process_v1_result(self, result):
|
||||
if result['IsException']:
|
||||
|
|
Loading…
Reference in New Issue