From 9c37781563e79e1c816632725a3890ea0955a5f6 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Fri, 17 Feb 2012 13:19:26 -0500 Subject: cloud-init.py: exit success if no data sources found previously, cloud-init would exit failure if no data sources were found. In the case of cloud-init-local, that was often the case. In the case of cloud-init (net) it is a bit more likely that the user would consider it failure if nothing was found. Potentially this could even be user-configurable. --- cloud-init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud-init.py b/cloud-init.py index 9d559020..9e0a0405 100755 --- a/cloud-init.py +++ b/cloud-init.py @@ -136,7 +136,7 @@ def main(): cloud.get_data_source() except cloudinit.DataSourceNotFoundException as e: sys.stderr.write("no instance data found in %s\n" % cmd) - sys.exit(1) + sys.exit(0) # set this as the current instance cloud.set_cur_instance() -- cgit v1.2.3