]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
teach jeos_create about the debug option.
authorAngus Salkeld <asalkeld@redhat.com>
Wed, 21 Mar 2012 11:27:14 +0000 (22:27 +1100)
committerAngus Salkeld <asalkeld@redhat.com>
Wed, 21 Mar 2012 11:27:14 +0000 (22:27 +1100)
Now this command produces lots of output (nice for debugging):
sudo heat -d jeos_create F16 x86_64

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
bin/heat

index 5d67d7d0734463d029f4d0ad705100bf92c031c6..ec044d48cb84a2e2b730fe15f1761c45da6dc2f5 100755 (executable)
--- a/bin/heat
+++ b/bin/heat
@@ -245,7 +245,11 @@ def jeos_create(options, arguments):
         sys.exit(1)
 
     print 'Creating JEOS image - this takes approximately 10 minutes.'
-    res = os.system("oz-install -t 50000 -u %s" % tdl_path)
+    extra_opts = ' '
+    if options.debug:
+        extra_opts = ' -d 3 '
+
+    res = os.system("oz-install %s -t 50000 -u %s" % (extra_opts, tdl_path))
     if res == 256:
         sys.exit(1)
     if not os.access(dsk_filename, os.R_OK):