Fix deploy.py return code 03/12103/1
authorPeter Barabas <peter.barabas@ericsson.com>
Mon, 7 Mar 2016 14:32:04 +0000 (15:32 +0100)
committerJonas Bjurel <jonas.bjurel@ericsson.com>
Sat, 9 Apr 2016 17:54:07 +0000 (17:54 +0000)
Fixes https://jira.opnfv.org/browse/FUEL-100

Change-Id: Ic2e01372778720cde84d83738d8b2c85b005124a
Signed-off-by: Peter Barabas <peter.barabas@ericsson.com>
(cherry picked from commit 50862693f7c1119c941bc344c90d91cdd37dde38)

deploy/deploy.py

index bf0b39d..245e6c0 100755 (executable)
@@ -223,7 +223,8 @@ class AutoDeploy(object):
             self.install_fuel_master()
         if not self.fuel_only:
             return self.deploy_env()
-        return True
+        # Exit status
+        return 0
 
     def run(self):
         check_if_root()
@@ -234,7 +235,8 @@ class AutoDeploy(object):
             if self.cleanup:
                 self.cleanup_execution_environment()
             return deploy_success
-        return True
+        # Exit status
+        return 0
 
 def check_bridge(pxe_bridge, dha_path):
     with io.open(dha_path) as yaml_file: