Permalink
Browse files

placed NC_EVENT_PRE_BOOT hook before reading in instance XML, so the …

…hook is useful
  • Loading branch information...
1 parent 2bdde68 commit cf1bc3177f10fbff8605f7f55c03d3389778b1ca @dmitrii dmitrii committed Jan 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 node/handlers.c
View
@@ -623,7 +623,6 @@ void *startup_thread (void * arg)
logprintfl (EUCAERROR, "[%s] error: failed to prepare images for instance (error=%d)\n", instance->instanceId, error);
goto shutoff;
}
- xml = file2str (instance->libvirtFilePath);
if (instance->state==TEARDOWN) { // timed out in STAGING
goto free;
@@ -636,6 +635,7 @@ void *startup_thread (void * arg)
logprintfl (EUCAERROR, "[%s] cancelled instance startup via hooks\n", instance->instanceId);
goto shutoff;
}
+ xml = file2str (instance->libvirtFilePath);
save_instance_struct (instance); // to enable NC recovery

0 comments on commit cf1bc31

Please sign in to comment.