diff --git a/kolla/cmd/build.py b/kolla/cmd/build.py
index eafe8ee739..d0d6ab7d94 100755
--- a/kolla/cmd/build.py
+++ b/kolla/cmd/build.py
@@ -33,4 +33,4 @@ def main():
 
 
 if __name__ == '__main__':
-    main()
+    sys.exit(main())