Permalink
Browse files

fix so that the citrix plugin runs first

  • Loading branch information...
1 parent f623e1c commit 21bc1737e6e8ac421ca983f1988fd6f487ece5a7 Matt Wise committed Sep 13, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/boxgrinder-build/plugins/platform/cloudstack/cloudstack-plugin.rb
View
6 lib/boxgrinder-build/plugins/platform/cloudstack/cloudstack-plugin.rb
@@ -6,9 +6,11 @@ module BoxGrinder
class CloudStackPlugin < CitrixPlugin
def execute
+ super
+
## Use local copy of /bin/vhd-util to convert the image from .raw to .vhd
- @log.debug "Converting #{@deliverables.disk} from fixed to dynamic with vhd-util..."
- @exec_helper.execute "/bin/vhd-util convert -s 1 -t 2 -i '#{@deliverables.disk}' -o '#{@deliverables.disk}'"
+ @log.debug "Converting #{@previous_deliverables.disk} from fixed to dynamic #{@deliverables.disk} with vhd-util..."
+ @exec_helper.execute "/bin/vhd-util convert -s 1 -t 2 -i '#{@previous_deliverables.disk}' -o '#{@deliverables.disk}'"
@log.info "Beginning CloudStack image customization..."
build_citrix do |guestfs, guestfs_helper|

0 comments on commit 21bc173

Please sign in to comment.