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:
parent
d4f0b169a0
commit
f2d73f018b
1 changed files with 3 additions and 0 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue