plugin/builder: return 0 from sub-commands

In the functions that implement the sub-commands (for stand-alone
use), always explicitly return 0, so that main() will always
return an int.
This commit is contained in:
Christian Kellner 2020-09-16 14:44:13 +02:00
parent d4f0b169a0
commit f2d73f018b

View file

@ -359,16 +359,19 @@ def compose_cmd(client: Client, args):
time.sleep(2)
show_compose(status)
return 0
def status_cmd(client: Client, args):
cs = client.compose_status(args.id)
show_compose(cs)
return 0
def wait_cmd(client: Client, args):
cs = client.wait_for_compose(args.id)
show_compose(cs)
return 0
def main():