def func(ctx): cnf = ctx['cnf'] try: cli.stop(cnf['name']) print('Stopped ' + cnf['name']) except requests.exceptions.HTTPError: print('Could not stop ' + cnf['name'] + '!') return 0
def func(ctx): cnf = ctx['cnf'] cli.stop(cnf['name']) print('Stopped ' + cnf['name']) return 0