From f2d73f018b6f31716d43f9498a2460f41ee98cec Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Wed, 16 Sep 2020 14:44:13 +0200 Subject: [PATCH] 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. --- plugins/builder/osbuild.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/builder/osbuild.py b/plugins/builder/osbuild.py index 0767d47..2e47518 100644 --- a/plugins/builder/osbuild.py +++ b/plugins/builder/osbuild.py @@ -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():