Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions ansible/library/exabgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ def start_exabgp(module, name):

for count in range(0, 60):
time.sleep(1)
ret = get_exabgp_status(module, name)
if u'RUNNING' == ret['status']:
status = get_exabgp_status(module, name)
if u'RUNNING' == status:
break
assert u'RUNNING' == ret['status']
assert u'RUNNING' == status

def restart_exabgp(module, name):
refresh_supervisord(module)
Expand All @@ -154,9 +154,9 @@ def restart_exabgp(module, name):
for count in range(0, 60):
time.sleep(1)
ret = get_exabgp_status(module, name)
if u'RUNNING' == ret['status']:
if u'RUNNING' == status:
break
assert u'RUNNING' == ret['status']
assert u'RUNNING' == status

def stop_exabgp(module, name):
exec_command(module, cmd="supervisorctl stop exabgp-%s" % name, ignore_error=True)
Expand Down